Final Platform Layer  0.9.2.0
How to disable the use of the CRT in FPL

Table of Contents

Consequences of disabling the CRT

If you disable the CRT, you lose a lot of functionality which we today take for granted:

Some limitations can be corrected by setting up the compiler properly, such as stack size, security checks, etc.

So if you are fine with that, the next section describes how to do disable the CRT usage in FPL.

Requirements for disabling the CRT in FPL

Disable the CRT in FPL

To disable the use of the C-Runtime Library, you need to set certain preprocessor definitions:

#define FPL_NO_CRT // Disable CRT support in FPL
#define FPL_APPTYPE_CONSOLE // or FPL_APPTYPE_WINDOW
#define FPL_IMPLEMENTATION // FPL_NO_CRT must be set set in the implementation only
#include <final_platform_layer.h>

Providing intrinsics (Mini-CRT)

Some compilers such as MSVC require certain stuff to compile properly.
You are responsible to provide that stuff if you get compile errors.

A few errors you may get:

Runtime check:

Float:

Integer:

Other:

To solve this compile errors it is recommended to use a mini-crt library or write all the functions yourself.

Notes

Right know FPL have No-CRT support for Win32 only! If you need this for other platforms let me know.