mirror of
https://github.com/HackerN64/HackerOoT.git
synced 2026-01-21 10:37:37 -08:00
14 lines
215 B
C
14 lines
215 B
C
|
|
#ifndef AVOID_UB_H
|
||
|
|
#define AVOID_UB_H
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This macro is used when the return type of a function is incorrect
|
||
|
|
*/
|
||
|
|
#ifndef AVOID_UB
|
||
|
|
#define BAD_RETURN(type) type
|
||
|
|
#else
|
||
|
|
#define BAD_RETURN(type) void
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|