When parsing a macro, store its offset and number of actions
This commit is contained in:
23
right/src/macros.h
Normal file
23
right/src/macros.h
Normal 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
|
||||
Reference in New Issue
Block a user