topazc
exception.hpp
Go to the documentation of this file.
1
6
7
#pragma once
8
#include <cstdint>
9
#include <string>
10
14
enum
SubsystemType
{
15
SUB_LEXER
,
16
SUB_PARSER
,
17
SUB_SEMANTIC
,
18
SUB_CODEGEN
19
};
20
32
void
throw_exception
(
SubsystemType
type, std::string msg, uint32_t line, std::string file_name,
bool
is_debug);
SubsystemType
SubsystemType
Subsystem from which the exception throwed.
Definition
exception.hpp:14
SUB_LEXER
@ SUB_LEXER
Definition
exception.hpp:15
SUB_PARSER
@ SUB_PARSER
Definition
exception.hpp:16
SUB_CODEGEN
@ SUB_CODEGEN
Definition
exception.hpp:18
SUB_SEMANTIC
@ SUB_SEMANTIC
Definition
exception.hpp:17
throw_exception
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
include
exception
exception.hpp
Generated by
1.15.0