mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Comment out debug code
This commit is contained in:
+2
-2
@@ -112,7 +112,7 @@ gb_internal isize ast_node_size(AstKind kind) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gb_global std::atomic<isize> global_total_node_memory_allocated;
|
// gb_global std::atomic<isize> global_total_node_memory_allocated;
|
||||||
|
|
||||||
// NOTE(bill): And this below is why is I/we need a new language! Discriminated unions are a pain in C/C++
|
// NOTE(bill): And this below is why is I/we need a new language! Discriminated unions are a pain in C/C++
|
||||||
gb_internal Ast *alloc_ast_node(AstFile *f, AstKind kind) {
|
gb_internal Ast *alloc_ast_node(AstFile *f, AstKind kind) {
|
||||||
@@ -122,7 +122,7 @@ gb_internal Ast *alloc_ast_node(AstFile *f, AstKind kind) {
|
|||||||
node->kind = kind;
|
node->kind = kind;
|
||||||
node->file_id = f ? f->id : 0;
|
node->file_id = f ? f->id : 0;
|
||||||
|
|
||||||
global_total_node_memory_allocated.fetch_add(size);
|
// global_total_node_memory_allocated.fetch_add(size);
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user