本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
felix
/
ftb
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
added defer_free
banana-cakes
Felix Brendel
6 年之前
父節點
98aa1450d8
當前提交
e5cb9ce81d
共有
2 個檔案被更改
,包括
2 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
hashmap.hpp
+2
-0
macros.hpp
+ 0
- 1
hashmap.hpp
查看文件
@@ -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
查看文件
@@ -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…
取消
儲存