mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-05-06 06:47:28 +00:00
* Generate native bindings from rust crate * Add native instance and runtime statics * Update README.md
25 lines
343 B
C
25 lines
343 B
C
// 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
|
|
*/
|