godot/core
Rémi Verschelde b0b759e6da
SCons: Cleanup DEBUG, _DEBUG and NDEBUG defines
- `_DEBUG` is MSVC specific so it didn't make much sense to define for
  Android and iOS builds.
- iOS was the only platform to define `DEBUG`. We don't use it anywhere
  outside thirdparty code, which we usually don't intend to debug, so it
  seems better to be consistent with other platforms.
- Consistently define `NDEBUG` to disable assert behavior in both `release`
  and `release_debug` targets. This used to be set for `release` for all
  platforms, and `release_debug` for Android and iOS only.
- Due to the above, I removed the only use we made of `assert()` in Godot
  code, which was only implemented for Unix anyway, should have been
  `DEV_ENABLED`, and is in PoolAllocator which we don't actually use.
- The denoise and recast modules keep defining `NDEBUG` even for the `debug`
  target as we don't want OIDN and Embree asserting all over the place.

(cherry picked from commit 26e9145c26)
2022-12-12 14:49:21 +01:00
..
bind Expose the "restart on exit" OS functionality 2022-09-20 17:27:46 +02:00
crypto Merge pull request #62408 from Razoric480/raz/fix-no-cache 2022-08-05 23:43:54 +02:00
io [3.x] PCKPacker Fix error spam 2022-11-16 06:52:47 -08:00
math Fix array-bounds warning in BVH 2022-12-04 20:00:08 +08:00
os SCons: Cleanup DEBUG, _DEBUG and NDEBUG defines 2022-12-12 14:49:21 +01:00
array.cpp add ability to pick random value from array 2022-11-14 19:11:41 +01:00
array.h add ability to pick random value from array 2022-11-14 19:11:41 +01:00
bitfield_dynamic.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
bitfield_dynamic.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
class_db.cpp Enable type information on release 2022-04-01 18:20:33 -03:00
class_db.h Enable type information on release 2022-04-01 18:20:33 -03:00
color_names.inc Update color constants to use HEX codes 2022-03-17 15:49:58 +01:00
color.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
color.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
command_queue_mt.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
command_queue_mt.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
compressed_translation.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
compressed_translation.h Fix typos with codespell 2022-02-11 09:50:59 +01:00
core_builders.py SCons: Generate header with info on which modules are enabled 2021-07-14 23:09:47 +02:00
core_string_names.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
core_string_names.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
cowdata.h [Core] Use std type traits to check operations triviality. 2022-08-04 15:20:28 +02:00
dictionary.cpp Add Dictionary.find_key() 2022-09-05 16:08:41 +02:00
dictionary.h Add Dictionary.find_key() 2022-09-05 16:08:41 +02:00
engine.cpp Core: Move generated VERSION_HASH to a .cpp file 2022-02-10 13:06:56 +01:00
engine.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
error_list.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
error_macros.cpp Errors: Fallback to fprintf if OS singleton doesn't exist 2022-06-30 19:23:02 +02:00
error_macros.h Fix header guard in error_macros.h 2022-08-26 16:04:54 +01:00
func_ref.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
func_ref.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
global_constants.cpp expose additional global enums in 3.x which are available in master 2022-10-14 09:33:24 -06:00
global_constants.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
hash_map.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
hashfuncs.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
image.cpp Fix Image::bump_map_to_normal_map incorrectly keeping mipmap flag 2022-11-30 15:34:27 +01:00
image.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
input_map.cpp [3.x] Fix action exact match 2022-01-13 22:29:18 -06:00
input_map.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
int_types.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
list.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
local_vector.h [Core] Use std type traits to check operations triviality. 2022-08-04 15:20:28 +02:00
locales.h Backport locale selection improvements. 2022-07-04 11:49:20 +03:00
make_binders.py Fix argument type generation with typed method binds 2022-04-02 14:32:01 -03:00
map.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
message_queue.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
message_queue.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
method_bind.cpp Enable type information on release 2022-04-01 18:20:33 -03:00
method_bind.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
method_ptrcall.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
node_path.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
node_path.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
oa_hash_map.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
object_id.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
object_rc.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
object.cpp [3.x] Rename set_indexed & get_child's params to be clearer 2022-10-12 20:55:41 +02:00
object.h Merge pull request #61878 from bruvzg/backport_locale_select 2022-08-05 23:45:17 +02:00
ordered_hash_map.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
packed_data_container.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
packed_data_container.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
paged_allocator.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
pair.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
path_remap.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
path_remap.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
pool_allocator.cpp SCons: Cleanup DEBUG, _DEBUG and NDEBUG defines 2022-12-12 14:49:21 +01:00
pool_allocator.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
pool_vector.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
pool_vector.h Add clear method to pool arrays 2022-08-10 17:31:29 +08:00
pooled_list.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
print_string.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
print_string.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
project_settings.cpp Project Manager: Fix hacky code for project rename 2022-11-30 15:34:27 +01:00
project_settings.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
ref_ptr.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
ref_ptr.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
reference.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
reference.h Enable type information on release 2022-04-01 18:20:33 -03:00
register_core_types.cpp Add NetworkedMultiplayerCustom so high-level multiplayer backends can be added from GDScript 2022-07-19 09:16:41 -05:00
register_core_types.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
resource.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
resource.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
rid_handle.cpp Improve locking safety for RID handles builds 2022-04-23 09:09:50 +01:00
rid_handle.h Improve locking safety for RID handles builds 2022-04-23 09:09:50 +01:00
rid.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
rid.h Revert "RID: Change comparison operators to use RID_Data id instead of address" 2022-12-12 09:10:37 +01:00
ring_buffer.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
safe_refcount.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
safe_refcount.h Use the right memory ordering in SafeNumeric operations 2022-07-19 17:10:26 +02:00
script_debugger_local.cpp Rename profiler "Idle Time" to "Process Time" 2022-05-06 19:31:31 +02:00
script_debugger_local.h Rename profiler "Idle Time" to "Process Time" 2022-05-06 19:31:31 +02:00
script_language.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
script_language.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
SCsub Add arch flag to assembler to fix build on ARM64 macOS / iOS. 2022-08-24 18:26:28 +02:00
self_list.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
set.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
simple_type.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
sort_array.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
string_buffer.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
string_builder.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
string_builder.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
string_name.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
string_name.h Implement Scene Unique Nodes 2022-04-26 13:55:48 +02:00
threaded_callable_queue.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
translation.cpp Backport locale selection improvements. 2022-07-04 11:49:20 +03:00
translation.h Backport locale selection improvements. 2022-07-04 11:49:20 +03:00
type_info.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
typedefs.h Float literals - fix math classes to allow 32 bit calculations 2022-02-24 16:46:02 +00:00
ucaps.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
undo_redo.cpp Merge pull request #54188 from Rubonnek/increase_var_arg_max_3x 2022-03-08 13:10:48 +01:00
undo_redo.h Fix UndoRedo::create_action() invalid memory usage 2022-03-02 12:02:37 +01:00
ustring.cpp Merge pull request #64564 from timothyqiu/word-wrap-3.x 2022-11-24 16:06:52 +01:00
ustring.h File: Re-add support to skip CR (\r) in File::get_as_text 2022-08-01 00:40:55 +02:00
variant_call.cpp add ability to pick random value from array 2022-11-14 19:11:41 +01:00
variant_op.cpp Style: Ensure consistent formatting with clang-format 15 2022-09-21 13:23:17 +02:00
variant_parser.cpp Add readahead to VariantParser 2022-11-24 15:58:23 +00:00
variant_parser.h Add readahead to VariantParser 2022-11-24 15:58:23 +00:00
variant.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
variant.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
vector.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
version.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
vmap.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
vset.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00