Skip to content

Instantly share code, notes, and snippets.

View SammyJames's full-sized avatar

Samantha SammyJames

View GitHub Profile
// Copyright 2015 Sammy James
#include "TaskTypes.h"
#include "Jobs/Job.h"
#include "Fibers/Fiber.h"
#include "Threads/Thread.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#pragma once
#include "Jobs/Jobs.h"
#include <functional>
#include <memory>
namespace Jobs
{
class IJob
#pragma once
#include "Jobs/Jobs.h"
#include <functional>
namespace Jobs
{
class IJob
{
template< typename T >
struct TLuaFunction
{
public:
using ArgType = typename TFunctionArgs< T >::Type;
using ResultType = typename TFunctionResult< T >::Type;
static ArgType Unwind( lua_State* L )
{
return Helper( L, std::make_index_sequence< std::tuple_size< ArgType >::value >{} );
> Onyx.exe!Onyx::UIObject::Testing(int One, float Two, bool Three) Line 19 C++
Onyx.exe!TLuaClass<Onyx::UIObject>::TFunctionType<std::basic_string<char,std::char_traits<char>,std::allocator<char> > (__cdecl Onyx::UIObject::*)(int,float,bool)const __ptr64>::Apply<std::tuple<int,float,bool> & __ptr64,0,1,2>(void * Object, std::tuple<int,float,bool> & Tuple, std::integer_sequence<unsigned __int64,0,1,2> __formal) Line 185 C++
Onyx.exe!TLuaClass<Onyx::UIObject>::TFunctionType<std::basic_string<char,std::char_traits<char>,std::allocator<char> > (__cdecl Onyx::UIObject::*)(int,float,bool)const __ptr64>::InternalCall(lua_State * L, void * Object) Line 176 C++
Onyx.exe!TLuaClass<Onyx::UIObject>::FunctionType::Call(lua_State * L, void * Object) Line 28 C++
Onyx.exe!TLuaClass<Onyx::UIObject>::Apply(lua_State * L) Line 420 C++
Onyx.exe!luaD_precall() C
Onyx.exe!luaV_execute() C
Onyx.exe!luaD_call() C
Onyx.exe!luaD_rawrunprotected() C
Onyx.exe!luaD_pcall() C
@SammyJames
SammyJames / gist:b71e91de5bd089e2f2b0
Created July 15, 2015 13:08
Some Luna improvements!
// Copyright 2015 Sammy James
#pragma once
#include <lua.hpp>
#include <utility>
#include <functional>
#include <list>
template< class T >
// Copyright 2015 Sammy James
#pragma once
#include <lua.hpp>
#include <utility>
#include <functional>
#include <list>
template< class T >
> Onyx.exe!TLuaRead<int>::Read(lua_State * L, int Index) Line 84 C++
Onyx.exe!TLuaFunction<void (__cdecl Onyx::UIObject::*)(int,float,bool) __ptr64>::Work<int>(int & Index, lua_State * L) Line 223 C++
Onyx.exe!TLuaFunction<void (__cdecl Onyx::UIObject::*)(int,float,bool) __ptr64>::Work<int,float,bool>(int & Index, lua_State * L) Line 230 C++
Onyx.exe!TLuaFunction<void (__cdecl Onyx::UIObject::*)(int,float,bool) __ptr64>::Helper<0,1,2>(lua_State * L, std::integer_sequence<unsigned __int64,0,1,2> __formal) Line 237 C++
Onyx.exe!TLuaFunction<void (__cdecl Onyx::UIObject::*)(int,float,bool) __ptr64>::Call(lua_State * L, void * Object) Line 246 C++
shared_ptr<_Ty> shared_from_this()
{ // return shared_ptr
return (shared_ptr<_Ty>(_Wptr));
}
shared_ptr<const _Ty> shared_from_this() const
{ // return shared_ptr
return (shared_ptr<const _Ty>(_Wptr));
}
template< typename T >
static void Test( T&& Arg )
{
}
template< typename T, typename... TS >
static void Test( T&& Arg, TS&&... Args )
{
Test( std::forward< T >( Arg ) );