Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
15838f37
Commit
15838f37
authored
Mar 05, 2017
by
Karroffel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added PowerState casting operator to Variant
Without it Godot does not build with PTRCALL_ENABLED
parent
481e5110
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
variant.cpp
core/variant.cpp
+5
-0
variant.h
core/variant.h
+2
-0
No files found.
core/variant.cpp
View file @
15838f37
...
...
@@ -2178,6 +2178,11 @@ Variant::operator IP_Address() const {
return
IP_Address
(
operator
String
()
);
}
Variant
::
operator
PowerState
()
const
{
return
(
PowerState
)
operator
int
();
}
Variant
::
Variant
(
bool
p_bool
)
{
type
=
BOOL
;
...
...
core/variant.h
View file @
15838f37
...
...
@@ -45,6 +45,7 @@
#include "path_db.h"
#include "simple_type.h"
#include "os/input_event.h"
#include "os/power.h"
#include "color.h"
#include "face3.h"
#include "ref_ptr.h"
...
...
@@ -254,6 +255,7 @@ public:
operator
Orientation
()
const
;
operator
IP_Address
()
const
;
operator
PowerState
()
const
;
Variant
(
bool
p_bool
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment