Easys
A minimalist, header-only C++ ECS library for efficient and fuss-free entity and component management.
Loading...
Searching...
No Matches
Macros
config.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EASYS_ENTITY_TYPE   uint32_t
 Defines the underlying data type for an Entity ID.
 
#define EASYS_ENTITY_LIMIT   10000
 Defines the maximum number of entities allowed in the ECS.
 
#define EASYS_LOG_ENABLED   0
 Master switch for all logging functionality.
 
#define EASYS_LOG_VERBOSITY   0
 Enables additional verbose logging output.
 
#define EASYS_LOG_LEVEL   2
 Sets the global logging level.
 
#define EASYS_LOG_TO_FILE   0
 Enables or disables logging to a file.
 
#define EASYS_LOG_FILE_PATH   "easys_log.txt"
 Defines the file path used for file-based logging.
 

Macro Definition Documentation

◆ EASYS_ENTITY_LIMIT

#define EASYS_ENTITY_LIMIT   10000

Defines the maximum number of entities allowed in the ECS.

This sets the limit for the total number of concurrent entities. It can be overridden by the user to adjust memory usage and capacity. Defaults to 10000.

◆ EASYS_ENTITY_TYPE

#define EASYS_ENTITY_TYPE   uint32_t

Defines the underlying data type for an Entity ID.

This can be overridden by the user to use a different integer type, for example, uint64_t for a larger entity count. Defaults to uint32_t.

◆ EASYS_LOG_ENABLED

#define EASYS_LOG_ENABLED   0

Master switch for all logging functionality.

When set to 0, all logging code is compiled out, regardless of log level or verbosity settings.

Note
Defaults to 0 (disabled).

◆ EASYS_LOG_FILE_PATH

#define EASYS_LOG_FILE_PATH   "easys_log.txt"

Defines the file path used for file-based logging.

This macro specifies the output file when EASYS_LOG_TO_FILE is enabled.

Note
Defaults to "easys_log.txt".

◆ EASYS_LOG_LEVEL

#define EASYS_LOG_LEVEL   2

Sets the global logging level.

Controls which log messages are emitted based on severity.

Valid values:

  • 0 = NONE
  • 1 = ERROR
  • 2 = INFO
  • 3 = DEBUG
  • 4 = TRACE

Messages with a severity greater than this level are discarded.

Note
Defaults to 2 (INFO).

◆ EASYS_LOG_TO_FILE

#define EASYS_LOG_TO_FILE   0

Enables or disables logging to a file.

When enabled, log output is written to the file specified by EASYS_LOG_FILE_PATH.

Note
Defaults to 0 (disabled).

◆ EASYS_LOG_VERBOSITY

#define EASYS_LOG_VERBOSITY   0

Enables additional verbose logging output.

This macro can be used to enable extended or diagnostic log output beyond standard severity-based filtering.

The exact meaning of verbosity is implementation-defined.

Note
Defaults to 0 (disabled).