Skip to content

Commit

Permalink
Add Radians, Degrees, Gradians, and Circles to emulate what TrigBase …
Browse files Browse the repository at this point in the history
…will look like when enums are available.
  • Loading branch information
colomon committed Feb 18, 2010
1 parent fa44b5a commit 60c14fe
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/cheats/constants.pir
Expand Up @@ -12,5 +12,26 @@
set_hll_global ['Numeric'], 'e', e
set_hll_global 'e', e

.local pmc Radians, Degrees, Gradians, Circles
Radians = new ['Int']
assign Radians, 0
set_hll_global ['Numeric'], 'Radians', Radians
set_hll_global 'Radians', Radians

Degrees = new ['Int']
assign Degrees, 1
set_hll_global ['Numeric'], 'Degrees', Degrees
set_hll_global 'Degrees', Degrees

Gradians = new ['Int']
assign Gradians, 2
set_hll_global ['Numeric'], 'Gradians', Gradians
set_hll_global 'Gradians', Gradians

Circles = new ['Int']
assign Circles, 3
set_hll_global ['Numeric'], 'Circles', Circles
set_hll_global 'Circles', Circles

.end

0 comments on commit 60c14fe

Please sign in to comment.