Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
96d72717
Commit
96d72717
authored
Mar 04, 2020
by
Sutou Kouhei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable MRB_METHOD_T_STRUCT by default on 32bit Windows
Because we can't use the highest 2 bits of function pointers.
parent
be86bd3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
appveyor.yml
appveyor.yml
+8
-0
include/mrbconf.h
include/mrbconf.h
+6
-1
No files found.
appveyor.yml
View file @
96d72717
...
...
@@ -14,10 +14,18 @@ environment:
# Visual Studio 2017 64bit
-
visualcpp
:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat
# Visual Studio 2017 32bit
-
visualcpp
:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
machine
:
x86
# Visual Studio 2015 64bit
-
visualcpp
:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
machine
:
amd64
# Visual Studio 2015 32bit
-
visualcpp
:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
machine
:
x86
# Visual Studio 2013 64bit
-
visualcpp
:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
machine
:
amd64
...
...
include/mrbconf.h
View file @
96d72717
...
...
@@ -38,7 +38,12 @@
/* add -DMRB_METHOD_T_STRUCT on machines that use higher bits of pointers */
/* no MRB_METHOD_T_STRUCT requires highest 2 bits of function pointers to be zero */
//#define MRB_METHOD_T_STRUCT
#ifndef MRB_METHOD_T_STRUCT
// can't use highest 2 bits of function pointers on 32bit Windows.
# if defined(_WIN32) && !defined(_WIN64)
# define MRB_METHOD_T_STRUCT
# endif
#endif
/* add -DMRB_INT32 to use 32bit integer for mrb_int; conflict with MRB_INT64;
Default for 32-bit CPU mode. */
...
...
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