topazc
exception.hpp
Go to the documentation of this file.
1
6
7#pragma once
8#include <cstdint>
9#include <string>
10
20
32void throw_exception(SubsystemType type, std::string msg, uint32_t line, std::string file_name, bool is_debug);
SubsystemType
Subsystem from which the exception throwed.
Definition exception.hpp:14
@ SUB_LEXER
Definition exception.hpp:15
@ SUB_PARSER
Definition exception.hpp:16
@ SUB_CODEGEN
Definition exception.hpp:18
@ SUB_SEMANTIC
Definition exception.hpp:17
void throw_exception(SubsystemType type, std::string msg, uint32_t line, std::string file_name, bool is_debug)
Function for throwing exception.
Definition exception.cpp:30