Skip to content

Commit

Permalink
macro
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Oct 26, 2024
1 parent 3322732 commit 0cf8bec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/__DEFINES/bandastation/pronouns.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@
ru_name_accusative = accusative;\
ru_name_instrumental = instrumental;\
ru_name_prepositional = prepositional

#define RU_NAME_GET_INITIAL(target, declent)\
target::ru_name_base != target::name ? target::name :\
declent == NOMINATIVE ? target::ru_name_nominative :\
declent == GENITIVE ? target::ru_name_genitive :\
declent == DATIVE ? target::ru_name_dative :\
declent == ACCUSATIVE ? target::ru_name_accusative :\
declent == INSTRUMENTAL ? target::ru_name_instrumental :\
declent == PREPOSITIONAL ? target::ru_name_instrumental :\
target::name

0 comments on commit 0cf8bec

Please sign in to comment.