Format vm.h and remove GLOBALS_GET() macro
Check TSRMG_FAST via our own macro.
Sync changes from library.
typedef struct cat_globals_info_s {
ts_rsrc_id id;
-#ifdef TSRMG_FAST
+#ifdef CAT_TSRMG_FAST
size_t offset;
#endif
} cat_globals_info_t;
@@ -66,7 +66,6 @@ typedef struct cat_globals_info_s {
# else
# define CAT_GLOBALS_BULK(name) TSRMG_FAST_BULK(CAT_GLOBALS_INFO(name).offset, CAT_GLOBALS_TYPE(name) *)
# endif
-#define CAT_GLOBALS_GET(name, value) (CAT_GLOBALS_BULK(name)->value)
# define CAT_GLOBALS_REGISTER(name) do { \
ts_allocate_fast_id(&CAT_GLOBALS_INFO(name).id, &CAT_GLOBALS_INFO(name).offset, sizeof(CAT_GLOBALS_TYPE(name)), NULL, NULL); \
CAT_GLOBALS_BZERO(name); \
@@ -79,7 +78,6 @@ typedef struct cat_globals_info_s {
# else
# define CAT_GLOBALS_BULK(name) TSRMG_BULK(CAT_GLOBALS_INFO(name).id, CAT_GLOBALS_TYPE(name) *)
# endif
-#define CAT_GLOBALS_GET(name, value) (CAT_GLOBALS_BULK(name)->value)
# define CAT_GLOBALS_REGISTER(name) do { \
ts_allocate_id(&CAT_GLOBALS_INFO(name).id, sizeof(CAT_GLOBALS_TYPE(name)), NULL, NULL); \
CAT_GLOBALS_BZERO(name); \
