Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Macros | Functions
bad_declarations.h File Reference

Match incorrect type promotion for two declared functions. More...

#include <config.h>
#include "gd_types.h"

Go to the source code of this file.

Macros

#define GD_USE_BAD_DECLARATIONS   1
 

Functions

struct ObjFacemake_face_with_colour ()
 
struct ObjLabelmake_label ()
 

Detailed Description

Match incorrect type promotion for two declared functions.

There is an issue with the compiled code for these function calls in files outside of the files in which they were defined. The only possible reason I can come up with for this behavior is that goddard only declared (not prototyped) his functions in the headers, and didn't include the header in the function's defining .c file (Even ido 5.0 cares about illegal promotion of types!)

Since that's an awful practice to emulate, include this file (first!) to prevent the proper prototypes of these functions from being seen by files with the the incorrectly compiled calls.

Macro Definition Documentation

◆ GD_USE_BAD_DECLARATIONS

#define GD_USE_BAD_DECLARATIONS   1

Function Documentation

◆ make_face_with_colour()

struct ObjFace* make_face_with_colour ( )

◆ make_label()

struct ObjLabel* make_label ( )