dom96 / osinfo

Modules providing information about the OS for Nim
MIT License
10 stars 9 forks source link

Check OS at compile time #4

Closed euantorano closed 7 years ago

euantorano commented 7 years ago

The current code simply has a note at the top of the win module of **Note:** This module will only work on Windows. This patch checks the OS and uses the {.error.} pragma if the OS doesn't match.

It also changes some uses of var to let where it makes sense to do so.

The removal of the extra whitespace was done by my editor and can largely be ignored.

dom96 commented 7 years ago

Nice! Thanks :)