restricted c header imports
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#include "include/native.h"
|
||||
|
||||
struct Imported_Handle {
|
||||
int value;
|
||||
};
|
||||
|
||||
static struct Imported_Handle handle = {7};
|
||||
|
||||
int child_value(int value) {
|
||||
return value;
|
||||
}
|
||||
|
||||
int imported_add(imported_int left, int right) {
|
||||
return left + right;
|
||||
}
|
||||
|
||||
unsigned long imported_scalar(unsigned char value, unsigned long extra) {
|
||||
return value + extra;
|
||||
}
|
||||
|
||||
Imported_Handle *imported_handle(void) {
|
||||
return &handle;
|
||||
}
|
||||
|
||||
int imported_read(const Imported_Handle *value) {
|
||||
return value->value;
|
||||
}
|
||||
|
||||
#ifdef BROLANG_FEATURE
|
||||
int configured_value(int value) {
|
||||
return value;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user