mirror of
https://github.com/tribufu/sdk-rust
synced 2025-06-19 20:44:17 +00:00
Merge Rust, C and C++ SDKs (#4)
* Generate native bindings from rust crate * Add native instance and runtime statics * Update README.md
This commit is contained in:
.cargo
.clang-format.gitignoreREADME.mdconfig
examples
include
premake5.luascripts
src/native
vendor/premake-core
14
examples/c/main.c
Normal file
14
examples/c/main.c
Normal file
@ -0,0 +1,14 @@
|
||||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <tribufu/api.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
tribufu_api_initialize();
|
||||
char *version = tribufu_api_get_user_agent();
|
||||
printf("%s\n", version);
|
||||
tribufu_free_string(version);
|
||||
tribufu_api_shutdown();
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user