summaryrefslogtreecommitdiff
path: root/src/include/target_version.hpp
blob: 07528276b635906cf47a26dac898daf6de5c5207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * MRustC - Rust Compiler
 * - By John Hodge (Mutabah/thePowersGang)
 *
 * include/target_version.hpp
 * - mrustc target lanuage version definitions
 */
#pragma once

enum class TargetVersion {
	Rustc1_19,
	Rustc1_29,
};

// Defined in main.cpp
extern TargetVersion	gTargetVersion;

#define TARGETVER_1_19  (gTargetVersion == TargetVersion::Rustc1_19)
#define TARGETVER_1_29  (gTargetVersion == TargetVersion::Rustc1_29)