Mon 16 Mar 11:09:06 CET 2026

This commit is contained in:
sbosse 2026-03-16 11:10:45 +01:00
parent f2d7c2481f
commit 12b706d027

20
src/ccall.h Normal file
View 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