mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Trying to clean up all the macros. One day, I'll finish the configuration layer and everything will be beautiful.
This commit is contained in:
parent
7d7b542325
commit
818f766066
|
@ -1,4 +1,4 @@
|
|||
#define SOL_CHECK_ARGUMENTS
|
||||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
|
|
@ -23,11 +23,13 @@ struct my_type {
|
|||
my_type& operator=(const my_type& other) {
|
||||
value = other.value;
|
||||
std::cout << "my_type at " << static_cast<void*>(this) << " being copy-assigned to!" << std::endl;
|
||||
return *this;
|
||||
}
|
||||
|
||||
my_type& operator=(my_type&& other) {
|
||||
value = other.value;
|
||||
std::cout << "my_type at " << static_cast<void*>(this) << " being move-assigned to!" << std::endl;
|
||||
return *this;
|
||||
}
|
||||
|
||||
~my_type() {
|
||||
|
|
|
@ -23,11 +23,13 @@ struct my_type {
|
|||
my_type& operator=(const my_type& other) {
|
||||
value = other.value;
|
||||
std::cout << "my_type at " << static_cast<void*>(this) << " being copy-assigned to!" << std::endl;
|
||||
return *this;
|
||||
}
|
||||
|
||||
my_type& operator=(my_type&& other) {
|
||||
value = other.value;
|
||||
std::cout << "my_type at " << static_cast<void*>(this) << " being move-assigned to!" << std::endl;
|
||||
return *this;
|
||||
}
|
||||
|
||||
~my_type() {
|
||||
|
|
|
@ -42,8 +42,10 @@
|
|||
|
||||
#ifdef LUAJIT_VERSION
|
||||
#ifndef SOL_LUAJIT
|
||||
#define SOL_LUAJIT
|
||||
#define SOL_LUAJIT 1
|
||||
#ifndef SOL_LUAJIT_VERSION
|
||||
#define SOL_LUAJIT_VERSION LUAJIT_VERSION_NUM
|
||||
#endif // SOL_LUAJIT_VERSION definition, if not present
|
||||
#endif // sol luajit
|
||||
#endif // luajit
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user