Mon 16 Mar 11:09:06 CET 2026
This commit is contained in:
parent
f2d7c2481f
commit
12b706d027
20
src/ccall.h
Normal file
20
src/ccall.h
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
#ifndef _CCALL_H
|
||||||
|
#define _CCALL_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
Extern C-CALL API
|
||||||
|
C functioncs can be registered and called via plx (CCALL).
|
||||||
|
*/
|
||||||
|
typedef struct {
|
||||||
|
char* name;
|
||||||
|
int (*foo)();
|
||||||
|
int8_t nargs; // -1: varargs, top of stack contains nargs
|
||||||
|
int8_t nret;
|
||||||
|
index_t next; // index of next first character group
|
||||||
|
} ccall_t;
|
||||||
|
|
||||||
|
extern ccall_t *ccalls;
|
||||||
|
|
||||||
|
void CCallInit(ccall_t *_ccalls);
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Reference in New Issue
Block a user