1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-23 23:32:45 +00:00

Change macro name to REFLECT_HANDLER

This commit is contained in:
Peter Evans 2018-02-05 21:54:38 -06:00
parent 8c0b69668c
commit 318107d18f

View File

@ -50,13 +50,13 @@ vm_reflect_free(vm_reflect *ref)
* All of the reflect functions do essentially the same thing--at least,
* right now they do.
*/
#define REFLECT(x) \
#define REFLECT_HANDLER(x) \
int vm_reflect_##x(vm_reflect *ref) { \
if (ref->x == NULL) return ERR_INVALID; ref->x(ref); return OK; }
REFLECT(cpu_info); // ignore docblock
REFLECT(machine_info); // ignore docblock
REFLECT(pause); // ignore docblock
REFLECT(resume); // ignore docblock
REFLECT(disasm_on); // ignore docblock
REFLECT(disasm_off); // ignore docblock
REFLECT_HANDLER(cpu_info); // ignore docblock
REFLECT_HANDLER(machine_info); // ignore docblock
REFLECT_HANDLER(pause); // ignore docblock
REFLECT_HANDLER(resume); // ignore docblock
REFLECT_HANDLER(disasm_on); // ignore docblock
REFLECT_HANDLER(disasm_off); // ignore docblock