Zig bindings for orca (still WIP) #140

Open
rdunnington wants to merge 24 commits from zig_ffi into main
3 changed files with 11 additions and 13 deletions
Showing only changes of commit b85efa4bc7 - Show all commits

View File

@ -8,11 +8,10 @@
#include "platform.h" #include "platform.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C" {
{
#endif #endif
oc_host_platform oc_get_host_platform() oc_host_platform oc_get_host_platform(void)
{ {
return OC_HOST_PLATFORM_MACOS; return OC_HOST_PLATFORM_MACOS;
} }

View File

@ -121,7 +121,7 @@ typedef enum
OC_HOST_PLATFORM_WINDOWS, OC_HOST_PLATFORM_WINDOWS,
} oc_host_platform; } oc_host_platform;
ORCA_API oc_host_platform oc_get_host_platform(); ORCA_API oc_host_platform oc_get_host_platform(void);
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"

View File

@ -8,11 +8,10 @@
#include "platform.h" #include "platform.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C" {
{
#endif #endif
oc_host_platform oc_get_host_platform() oc_host_platform oc_get_host_platform(void)
{ {
return OC_HOST_PLATFORM_WINDOWS; return OC_HOST_PLATFORM_WINDOWS;
} }