mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-01 03:20:41 +00:00
8c95516224
- updaterevision for automated revision string generation - re2c as a prerequisite to use sc_man in the future - zipdir to automatically generate an engine resource file.
24 lines
340 B
C++
24 lines
340 B
C++
#ifndef _RE2C_CODEGEN_INDENT_
|
|
#define _RE2C_CODEGEN_INDENT_
|
|
|
|
#include <string>
|
|
|
|
#include "src/globals.h"
|
|
|
|
namespace re2c
|
|
{
|
|
|
|
inline std::string indent (uint32_t ind)
|
|
{
|
|
std::string str;
|
|
|
|
while (opts->target != opt_t::DOT && ind-- > 0)
|
|
{
|
|
str += opts->indString;
|
|
}
|
|
return str;
|
|
}
|
|
|
|
} // end namespace re2c
|
|
|
|
#endif // _RE2C_CODEGEN_INDENT_
|