diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-07 21:19:01 +0100 | 
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-07 21:19:01 +0100 | 
| commit | dc93b1e9b3e05dfd3e271aaccbee1210180a6906 (patch) | |
| tree | 8a66c8087fb8cbcf14b0827b78a11ec0fb7b08ce /src/example/savemgr.cpp | |
| parent | ace974504e410eb7d98ca021d75511d8f84b9bdc (diff) | |
update clang-format and run `make format` over my (loek)s files
Diffstat (limited to 'src/example/savemgr.cpp')
| -rw-r--r-- | src/example/savemgr.cpp | 13 | 
1 files changed, 6 insertions, 7 deletions
diff --git a/src/example/savemgr.cpp b/src/example/savemgr.cpp index c8dd2bc..436fb5a 100644 --- a/src/example/savemgr.cpp +++ b/src/example/savemgr.cpp @@ -4,21 +4,21 @@   */  #include <cassert> -#include <crepe/util/log.h> -#include <crepe/util/Proxy.h> -#include <crepe/api/SaveManager.h>  #include <crepe/api/Config.h> +#include <crepe/api/SaveManager.h> +#include <crepe/util/Proxy.h> +#include <crepe/util/log.h>  using namespace crepe;  // unrelated setup code -int _ = [] () { +int _ = []() {  	// make sure all log messages get printed  	auto & cfg = Config::get_instance();  	cfg.log.level = LogLevel::TRACE;  	return 0; // satisfy compiler -} (); +}();  int main() {  	const char * key = "mygame.test"; @@ -27,7 +27,7 @@ int main() {  	dbg_logf("has key = %s", mgr.has(key) ? "true" : "false");  	ValueBroker<int> prop = mgr.get<int>(key, 0); -	Proxy<int> val        = mgr.get<int>(key, 0); +	Proxy<int> val = mgr.get<int>(key, 0);  	dbg_logf("val = %d", mgr.get<int>(key).get());  	prop.set(1); @@ -42,4 +42,3 @@ int main() {  	return 0;  } -  |