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:
ThePhD 2018-04-17 15:04:17 -04:00
parent 7d7b542325
commit 818f766066
4 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#define SOL_CHECK_ARGUMENTS
#define SOL_CHECK_ARGUMENTS 1
#include <sol.hpp>
#include "assert.hpp"

View File

@ -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() {

View File

@ -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() {

View File

@ -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