Melee Modding Library  2.0.0
A C library for modding Super Smash Bros Melee
Macros
unit_test.h File Reference

Macros for unit testing. More...

#include "print.h"
#include "math.h"
#include "gctypes.h"

Go to the source code of this file.

Macros

#define REQUIRE(condition)
 
#define REQUIRE_FLT_EQ(L, R, tol)   REQUIRE(APPROX_ZERO((L) - (R), tol))
 
#define UNIT_TEST   static bool _tests_passed = true
 
#define END_TEST
 

Detailed Description

Macros for unit testing.

Macro Definition Documentation

#define UNIT_TEST   static bool _tests_passed = true

Macro placed in the global scope of each .c file, before END_TEST