mirror of
https://github.com/Tribufu/TribufuRust
synced 2026-08-09 21:01:07 +00:00
Generate native bindings from rust crate
This commit is contained in:
parent
738f9c947b
commit
6ab490ce07
37 changed files with 1112 additions and 23 deletions
25
include/tribufu/macros.h
Normal file
25
include/tribufu/macros.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define TRIBUFU_CPP
|
||||
#endif
|
||||
|
||||
#ifndef EXTERN_C
|
||||
#ifdef TRIBUFU_CPP
|
||||
#define EXTERN_C extern "C"
|
||||
#else
|
||||
#define EXTERN_C
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define TRIBUFU_API EXTERN_C
|
||||
|
||||
/*
|
||||
#ifdef TRIBUFU_LIBRARY
|
||||
#define TRIBUFU_API DLLEXPORT
|
||||
#else
|
||||
#define TRIBUFU_API DLLIMPORT
|
||||
#endif
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue