[plugin macros] clean up all usage of context; also document a few more things

This commit is contained in:
Allen Webster
2021-03-30 21:23:05 -07:00
parent cc38ed2c96
commit e1c0656e73
4 changed files with 44 additions and 67 deletions
+10 -10
View File
@@ -207,21 +207,14 @@
column: MD_u32,
};
////////////////////////////////
//~ Message Levels
@enum MD_MessageKind: {
None,
Warning,
Error,
CatastrophicError,
}
////////////////////////////////
//~ String-To-Node table
@doc("Controls the behavior of routines that write into maps when the written key was already in the map.")
@enum MD_MapCollisionRule: {
@doc("When the key written was already in the map, a new key value pair is attached to the same chain always. Leaving multiple values associated to the same key.")
Chain,
@doc("When the key written was already in the map, the existing value is replaced with the newly inserted value.")
Overwrite,
}
@@ -303,6 +296,13 @@
////////////////////////////////
//~ Parsing State
@enum MD_MessageKind: {
None,
Warning,
Error,
CatastrophicError,
}
@struct MD_Error: {
next: *MD_Error,
string: MD_String8,