C++ linker presentation
This commit is contained in:
12
cpplinker/06_c_interop/wrapper.h
Normal file
12
cpplinker/06_c_interop/wrapper.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void vec_create(void** out);
|
||||
void vec_destroy(void* vec);
|
||||
void vec_push(void* vec, double val);
|
||||
double vec_get(void* vec, int idx);
|
||||
int vec_size(void* vec);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user