/ftb

C++ headers for convenience

Primary LanguageC++

ftb headers

Files

FilePurpose
core.hppplatform, macros, types, utf8, allocators, io, print, arraylist
cpu_info.hppget info about the cup and which featrues/instructions it supports
bucket_allocator.hppa memory allocator that allocates in buckets
hashmap.hppimplements a hashmap that uses linear probing
hooks.hpphooks are a storage for lambdas that can be run in bulk later
math.hppvector math
mesh.hpploading .obj files
scheduler.hppa system for handling animations and cude that should run later
testing.hppsimple functions and macros that can be used to write tests

Macros

These macros can be defined by the user to adjust the behavior of ftb.

  • FTB_INTERNAL_DEBUG enables ftb-internal checks and asserts
  • FTB_STACKTRACE_INFO when enabled, the function print_stacktrace will print the stack trace of the current execution, this function is also used in other parts of ftb. If FTB_STACKTRACE_INFO is not set, no stack info will be printed also in these cases.
    • On linux systems, if additionally FTB_STACKTRACE_USE_GDB is defined, gdb will be used intanally to get a nice demangled view of the stacktrace. This macro only is relevant on Linux systems, it has no effect on other platforms.
  • FTB_GLOBAL_SHUTDOWN_HOOK enable the system_shutdown_hook that is run when the program exits