-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robot
committed
Dec 7, 2016
1 parent
07c2377
commit 089da93
Showing
11 changed files
with
52 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
require "./sizes" | ||
|
||
module SF | ||
VERSION = "2.4.2" | ||
SFML_VERSION = "2.4.0" | ||
VERSION = "2.4.3" | ||
SFML_VERSION = "2.4.1" | ||
|
||
# Raised in shorthand class methods if initialization or resource loading fails | ||
class InitError < Exception | ||
end | ||
|
||
private module Util | ||
# Copy all constants from the namespace into the current namespace | ||
macro extract(from) | ||
{% for c in from.resolve.constants %} | ||
# :nodoc: | ||
{{c}} = {{from}}::{{c}}{% if c.id.ends_with? "Count" %}.value{% end %} | ||
{% end %} | ||
end | ||
end | ||
end | ||
|
||
# :nodoc: | ||
macro _sf_enum(from) | ||
{% for c in from.resolve.constants %} | ||
# :nodoc: | ||
{{c}} = {{from}}::{{c}}{% if c.id.ends_with? "Count" %}.value{% end %} | ||
{% end %} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters