mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
Moves most circuit defines to files (#60705)
Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
co-authored by
Watermelon914
parent
262d592794
commit
0deb859b3c
@@ -1,3 +1,10 @@
|
||||
#define COMP_ARITHMETIC_ADD "Add"
|
||||
#define COMP_ARITHMETIC_SUBTRACT "Subtract"
|
||||
#define COMP_ARITHMETIC_MULTIPLY "Multiply"
|
||||
#define COMP_ARITHMETIC_DIVIDE "Divide"
|
||||
#define COMP_ARITHMETIC_MIN "Minimum"
|
||||
#define COMP_ARITHMETIC_MAX "Maximum"
|
||||
|
||||
/**
|
||||
* # Arithmetic Component
|
||||
*
|
||||
@@ -73,3 +80,9 @@
|
||||
|
||||
output.set_output(result)
|
||||
|
||||
#undef COMP_ARITHMETIC_ADD
|
||||
#undef COMP_ARITHMETIC_SUBTRACT
|
||||
#undef COMP_ARITHMETIC_MULTIPLY
|
||||
#undef COMP_ARITHMETIC_DIVIDE
|
||||
#undef COMP_ARITHMETIC_MIN
|
||||
#undef COMP_ARITHMETIC_MAX
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#define COMP_LOGIC_AND "AND"
|
||||
#define COMP_LOGIC_OR "OR"
|
||||
#define COMP_LOGIC_XOR "XOR"
|
||||
|
||||
/**
|
||||
* # Logic Component
|
||||
*
|
||||
@@ -47,3 +51,7 @@
|
||||
return FALSE
|
||||
if(.)
|
||||
return TRUE
|
||||
|
||||
#undef COMP_LOGIC_AND
|
||||
#undef COMP_LOGIC_OR
|
||||
#undef COMP_LOGIC_XOR
|
||||
|
||||
Reference in New Issue
Block a user