KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
opts.h File Reference

Compile-time options regarding debugging and other topics. More...

#include <sys/cdefs.h>

Go to the source code of this file.

Macros

#define KOS_DEBUG   0
 
#define FS_CD_MAX_FILES   8
 The maximum number of cd files that can be open at a time.
 
#define FS_ROMDISK_MAX_FILES   16
 The maximum number of romdisk files that can be open at a time.
 
#define FS_RAMDISK_MAX_FILES   8
 The maximum number of ramdisk files that can be open at a time.
 
#define FD_SETSIZE   1024
 The number of distinct file descriptors, including files and network sockets, that can be in use at a time.
 

Detailed Description

Compile-time options regarding debugging and other topics.

This file is meant to be a kind of Grand Central Station for all of the various compile-time options that can be set when building KOS. Each of the various compile-time macros that control things like additional debugging checks and such should be documented in this particular file. In addition, groups of related macros are provided here to make it easier to set these options at compile time.

Basically, this is here to make it easier to customize your copy of KOS. In the past, you would have had to search through all the various files to find potential options, which was both annoying and error-prone. In addition, often various debugging flags would end up being set in the main repository as people debugged individual pieces of code, leaving them set for everyone else, even if they aren't necessarily useful/helpful all the time (KM_DBG, I'm looking at you).

Author
Lawrence Sebald