This website works better with JavaScript.
Home
Explore
Help
Sign In
felix
/
ftb
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
added defer_free
banana-cakes
Felix Brendel
6 years ago
parent
98aa1450d8
commit
e5cb9ce81d
2 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
hashmap.hpp
+2
-0
macros.hpp
+ 0
- 1
hashmap.hpp
View File
@@ -102,7 +102,6 @@ struct Hash_Map {
}
value_type get_object(key_type key) {
int index = get_index_of_living_cell_if_it_exists(key, hm_hash((key_type)key));
if (index != -1) {
return data[index].object;
+ 2
- 0
macros.hpp
View File
@@ -54,6 +54,8 @@ static struct {
#define defer auto TOKENPASTE2(__deferred_lambda_call, __COUNTER__) = deferrer << [&]
#define defer_free(var) defer { free(var); }
/*
defer {
Write
Preview
Loading…
Cancel
Save