ArkScript
A small, fast, functional and scripting language for video games
Literals.hpp
Go to the documentation of this file.
1/**
2 * @file Literals.hpp
3 * @author Alexandre Plateau ([email protected])
4 * @brief User defined literals for Ark internals
5 * @version 0.2
6 * @date 2021-10-2
7 *
8 * @copyright Copyright (c) 2020-2021
9 *
10 */
11
13{
14 inline uint8_t operator""_u8(unsigned long long int num)
15 {
16 return static_cast<uint8_t>(num);
17 }
18
19 inline uint16_t operator""_u16(unsigned long long int num)
20 {
21 return static_cast<uint16_t>(num);
22 }
23}