1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

C++ modernize: Pragma once (#6264)

* Migrate cpp headers to pragma once
This commit is contained in:
Loïc Blot 2017-08-17 22:19:39 +02:00 committed by GitHub
parent c738d1eeab
commit 921151d97a
236 changed files with 288 additions and 1028 deletions

View file

@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Eg. if you have this constant somewhere that you just can't get right
by changing it and recompiling all over again:
v3f wield_position = v3f(55, -35, 65);
Make it look like this:
v3f wield_position = v3f(55, -35, 65);
QUICKTUNE_AUTONAME(QVT_FLOAT, wield_position.X, 0, 100);
@ -35,19 +35,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
keymap_quicktune_next
keymap_quicktune_dec
keymap_quicktune_inc
Once you have modified the values at runtime and then quit, the game
will print out all the modified values at the end:
Modified quicktune values:
wield_position.X = 60
wield_position.Y = -30
wield_position.Z = 65
The QUICKTUNE macros shouldn't generally be left in committed code.
*/
#ifndef QUICKTUNE_HEADER
#define QUICKTUNE_HEADER
#pragma once
#include <string>
#include <map>
@ -99,6 +98,3 @@ void updateQuicktuneValue(const std::string &name, QuicktuneValue &val);
#define QUICKTUNE_AUTONAME(type_, var, min_, max_)\
QUICKTUNE(type_, var, min_, max_, #var)
#endif