1
0
mirror of https://github.com/pevans/erc-c.git synced 2025-01-18 10:30:37 +00:00

Add new REFLECT macro to allow other code to define funcs

This commit is contained in:
Peter Evans 2018-02-05 21:55:13 -06:00
parent 318107d18f
commit b7f2cabb3e

View File

@ -57,6 +57,13 @@ struct vm_reflect {
#endif
};
/*
* Allow us to either declare or define a new reflect function that can
* be hooked into a reflect struct
*/
#define REFLECT(x) \
void x(vm_reflect *)
extern int vm_reflect_cpu_info(vm_reflect *);
extern int vm_reflect_disasm_off(vm_reflect *);
extern int vm_reflect_disasm_on(vm_reflect *);