Peel off assemblers into optional module.

Not sufficiently tested.
This commit is contained in:
Brad Nelson
2023-07-05 15:00:59 -07:00
parent 2a673c7378
commit 6884898cb1
9 changed files with 148 additions and 10 deletions

View File

@ -22,19 +22,27 @@
# include <sys/stat.h>
# include <sys/select.h>
// Optional hook to pull in words for userwords.h
// Hook to pull in words from optional userwords.h
# if __has_include("userwords.h")
# include "userwords.h"
# else
# define USER_WORDS
# endif
// Hook to pull in words from optional assemblers.h
# if __has_include("assemblers.h")
# include "assemblers.h"
# else
# define OPTIONAL_ASSEMBLERS_SUPPORT
# endif
static cell_t ResizeFile(cell_t fd, cell_t size);
#endif
#define PLATFORM_OPCODE_LIST \
USER_WORDS \
OPTIONAL_ASSEMBLERS_SUPPORT \
REQUIRED_PLATFORM_SUPPORT \
REQUIRED_ESP_SUPPORT \
REQUIRED_MEMORY_SUPPORT \