ArkScript
A small, fast, functional and scripting language for video games
Ark.cpp
Go to the documentation of this file.
1#include <Ark/Ark.hpp>
2
3// check if MSVC is correctly configured for UTF8
4// from: https://www.reddit.com/r/cpp/comments/75gohf/i_just_found_a_use_for_the_poop_emoji_in_c/
5#ifdef _MSC_VER
6static_assert(
7 (static_cast<unsigned char>("💩"[0]) == 0xF0) &&
8 (static_cast<unsigned char>("💩"[1]) == 0x9F) &&
9 (static_cast<unsigned char>("💩"[2]) == 0x92) &&
10 (static_cast<unsigned char>("💩"[3]) == 0xA9),
11 "Source or compiler not UTF-8 compliant! Add flag /utf-8 for Visual Studio");
12#endif
Includes the needed files to start using ArkScript.