https://github.com/teeworlds/teeworlds/issues/897
this was the reason why it was ever implemented into teeworlds, but i guess this won't help alot with performance to run potatoworlds
just another random setting imo
Fastly Engineer 1: Seems like a common error message. Can you check stackoverflow to see if there's an easy fix?
Fastly Engineer 2: I have some very bad news...
version=$(grep "^#define GAME_RELEASE_VERSION" src/game/version.h | cut -d\" -f2)
A Python-equivalent of what I am looking for (if this project was written in Python, of course) would be e.g.:
version=$(python -c "from src/game/version import GAME_RELEASE_VERSION; print(GAME_RELEASE_VERSION)")
Any c++ suggestion better than the currently used bash-ism above? (edited)echo '#include "src/game/version.h"\n#include <iostream>\nint main() { std::cout << GAME_RELEASE_VERSION << std::endl; }' | g++ -xc++ - && ./a.out
echo '#include "src/game/version.h"\nGAME_RELEASE_VERSION' | g++ -E - | tail -n1
--version
flag in DDNet-Server/DDNet and run thatinventory
which does this (ab)using ctor as a list which is a very ugly hack involving running code before main)ddracecommands.h
. I have commands annotated with the macro #[command]
, I need to register all annotated commands with the botregister_commands!("commands.rs");
(edited)commands.rs
would also need to be generated, wouldn't that cause issues with incremental compression?myawesomemodule::register_all()
I just don't know how to generate register_all
register_all()
would just be #define CONSOLE_COMMAND(...) #include "ddracecommands.h"
#[generate_register_all]
and in that macro scan the module for #[command]
and generate a register_all
functionmacro_rules!
to generate repetitive code https://doc.rust-lang.org/rust-by-example/macros.html#[commands(...)]
for now