mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Evaluate assertions after placing sections
This commit is contained in:
@@ -22,6 +22,11 @@ void obj_ReadFile(char const *fileName);
|
|||||||
*/
|
*/
|
||||||
void obj_DoSanityChecks(void);
|
void obj_DoSanityChecks(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Evaluate all assertions
|
||||||
|
*/
|
||||||
|
void obj_CheckAssertions(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `free`s all object memory that was allocated.
|
* `free`s all object memory that was allocated.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ int main(int argc, char *argv[])
|
|||||||
/* then process them, */
|
/* then process them, */
|
||||||
obj_DoSanityChecks();
|
obj_DoSanityChecks();
|
||||||
assign_AssignSections();
|
assign_AssignSections();
|
||||||
|
obj_CheckAssertions();
|
||||||
assign_Cleanup();
|
assign_Cleanup();
|
||||||
|
|
||||||
/* and finally output the result. */
|
/* and finally output the result. */
|
||||||
|
|||||||
@@ -512,7 +512,10 @@ void obj_ReadFile(char const *fileName)
|
|||||||
void obj_DoSanityChecks(void)
|
void obj_DoSanityChecks(void)
|
||||||
{
|
{
|
||||||
sect_DoSanityChecks();
|
sect_DoSanityChecks();
|
||||||
|
}
|
||||||
|
|
||||||
|
void obj_CheckAssertions(void)
|
||||||
|
{
|
||||||
patch_CheckAssertions(assertions);
|
patch_CheckAssertions(assertions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user