Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
felix
/
ftb
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
added defer_free
banana-cakes
Felix Brendel
6 anni fa
parent
98aa1450d8
commit
e5cb9ce81d
2 ha cambiato i file
con
2 aggiunte
e
1 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+0
-1
hashmap.hpp
+2
-0
macros.hpp
+ 0
- 1
hashmap.hpp
Vedi 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
Vedi File
@@ -54,6 +54,8 @@ static struct {
#define defer auto TOKENPASTE2(__deferred_lambda_call, __COUNTER__) = deferrer << [&]
#define defer_free(var) defer { free(var); }
/*
defer {
Scrivi
Anteprima
Caricamento…
Annulla
Salva