When parsing a macro, store its offset and number of actions

This commit is contained in:
Eric Tang
2017-08-09 09:49:30 -07:00
parent 1c91a7d5d9
commit c983e58d8e
5 changed files with 36 additions and 3 deletions

23
right/src/macros.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef __MACROS_H__
#define __MACROS_H__
// Includes:
#include <stdint.h>
// Macros:
#define MAX_MACRO_NUM 1024
// Typedefs:
typedef struct {
uint16_t offset;
uint16_t macroActionsCount;
} macro_reference_t;
// Variables:
extern macro_reference_t AllMacros[MAX_MACRO_NUM];
#endif