geode/loader/dobby/external/misc-helper/misc-helper/variable_cache.h
2022-07-30 19:24:03 +03:00

18 lines
394 B
C

#ifndef VARIABLE_CACHE_H
#define VARIABLE_CACHE_H
#include <stdint.h>
#include <assert.h>
#define cache_set stash
void cache_set(const char *name, uint64_t value);
#define cache_get(x) cache(x)
#define assert_cache(x) (assert(cache(x)), cache(x))
uint64_t cache_get(const char *name);
int serialized_to_file(const char *filepath);
int unserialized_from_file(const char *filepath);
#endif