Skip to content

Commit

Permalink
The current luabind/lua/boost mix causes exceptions to
Browse files Browse the repository at this point in the history
crash Ctrlr instrad of handling them, need to fix that
  • Loading branch information
RomanKubiak committed Dec 13, 2016
1 parent 06c6f93 commit e7ccc06
Show file tree
Hide file tree
Showing 149 changed files with 14,393 additions and 759 deletions.
339 changes: 172 additions & 167 deletions Builds/Generated/Windows/Standalone_2015/Ctrlr_Standalone.vcxproj

Large diffs are not rendered by default.

882 changes: 458 additions & 424 deletions Builds/Generated/Windows/Standalone_2015/Ctrlr_Standalone.vcxproj.filters

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Panels
Submodule Panels updated 1 files
+67 −20 DEMO/DEMO - OSC.panel
2 changes: 1 addition & 1 deletion Scripts/post-commit
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function detect_os {
PACKAGE=$CTRLR_ROOT/Packaging/Windows/Ctrlr-$VERSION.exe
BUILD_LOG_WIN32=$CTRLR_ROOT/Builds/Ctrlr-$VERSION.win32.build.log
BUILD_LOG_WIN64=$CTRLR_ROOT/Builds/Ctrlr-$VERSION.win64.build.log
CTRLR_KEY=""
CTRLR_KEY="$CTRLR_ROOT/Packaging/ctrlr.key"
return
fi

Expand Down
55 changes: 0 additions & 55 deletions Source/Core/CtrlrLuaHeaders.h

This file was deleted.

4 changes: 2 additions & 2 deletions Source/Core/CtrlrRevision.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __CTRLR_REVISION__
#define __CTRLR_REVISION__

static const char *ctrlrRevision = "0.0.0";
static const char *ctrlrRevisionDate = "Satans Birthday 666";
static const char *ctrlrRevision = "5.4.24";
static const char *ctrlrRevisionDate = "Mon Dec 12 19:19:32 CEST 2016";

#endif
8 changes: 0 additions & 8 deletions Source/Core/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
#include <algorithm>
#include <cmath>

extern "C"
{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}

#include <luabind/config.hpp>
#include <luabind/class.hpp>
#include <luabind/function.hpp>
Expand Down Expand Up @@ -59,7 +52,6 @@ extern "C"
#include <luabind/discard_result_policy.hpp>
#include <luabind/version.hpp>
#include <luabind/shared_ptr_converter.hpp>
#include <lua.hpp>

#include "JuceHeader.h"
#include "CtrlrMacros.h"
Expand Down
1 change: 0 additions & 1 deletion Source/Lua/CtrlrLuaManager.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "stdafx.h"
#include "CtrlrLuaManager.h"

#include "CtrlrPanel/CtrlrPanel.h"
#include "CtrlrPanel/CtrlrPanelEditor.h"
#include "CtrlrLuaMultiTimer.h"
Expand Down
35 changes: 0 additions & 35 deletions Source/Misc/compat.c

This file was deleted.

29 changes: 8 additions & 21 deletions Source/Misc/include/compat.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
#include "lua.h"
#include "lauxlib.h"

/****************************************************************************/

#if LUA_VERSION_NUM>=502

int typeerror(lua_State* L, int narg, const char* tname);
#define setfuncs luaL_setfuncs
#define setuservalue lua_setuservalue
#define getuservalue lua_getuservalue

#elif LUA_VERSION_NUM==501

#define typeerror luaL_typerror
void setfuncs(lua_State* L, const luaL_Reg* l, int nup);
#define setuservalue lua_setfenv
#define getuservalue lua_getfenv

#endif

#include "lua.h"
#include "lauxlib.h"


int typeerror(lua_State* L, int narg, const char* tname);
#define setfuncs luaL_setfuncs
#define setuservalue lua_setuservalue
#define getuservalue lua_getuservalue
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions Source/Misc/address.c → Source/Misc/liblo/src/address.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
*/

#ifdef LINUX
#include "lo_config_linux.h"
#include "lo/lo_config_linux.h"
#endif

#ifdef _WIN32
#include "lo_config_win32.h"
#include "lo/lo_config_win32.h"
#endif

#ifdef __APPLE__
#include "lo_config_osx.h"
#include "lo/lo_config_osx.h"
#endif

#include <assert.h>
Expand All @@ -49,8 +49,8 @@
#endif
#endif

#include "lo_types_internal.h"
#include "lo_internal.h"
#include "lo/lo_types_internal.h"
#include "lo/lo_internal.h"
#include "lo/lo.h"
#include "lo/lo_throw.h"

Expand Down
2 changes: 1 addition & 1 deletion Source/Misc/blob.c → Source/Misc/liblo/src/blob.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <stdlib.h>
#include <string.h>

#include "lo_types_internal.h"
#include "lo/lo_types_internal.h"
#include "lo/lo.h"

lo_blob lo_blob_new(int32_t size, const void *data)
Expand Down
2 changes: 1 addition & 1 deletion Source/Misc/bundle.c → Source/Misc/liblo/src/bundle.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <stdio.h>
#include <string.h>

#include "lo_types_internal.h"
#include "lo/lo_types_internal.h"
#include "lo/lo.h"

lo_bundle lo_bundle_new(lo_timetag tt)
Expand Down
4 changes: 2 additions & 2 deletions Source/Misc/message.c → Source/Misc/liblo/src/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include <netinet/in.h>
#endif

#include "lo_types_internal.h"
#include "lo_internal.h"
#include "lo/lo_types_internal.h"
#include "lo/lo_internal.h"
#include "lo/lo.h"

#define LO_DEF_TYPE_SIZE 8
Expand Down
2 changes: 1 addition & 1 deletion Source/Misc/method.c → Source/Misc/liblo/src/method.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <stdio.h>

#include "lo_types_internal.h"
#include "lo/lo_types_internal.h"
#include "lo/lo.h"

void lo_method_pp(lo_method m)
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions Source/Misc/send.c → Source/Misc/liblo/src/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*/

#ifdef LINUX
#include "lo_config_linux.h"
#include "lo/lo_config_linux.h"
#endif

#ifdef _WIN32
#include "lo_config_win32.h"
#include "lo/lo_config_win32.h"
#endif

#include <stdarg.h>
Expand All @@ -44,8 +44,8 @@
#include <netinet/tcp.h>
#endif

#include "lo_types_internal.h"
#include "lo_internal.h"
#include "lo/lo_types_internal.h"
#include "lo/lo_internal.h"
#include "lo/lo.h"

#ifndef MSG_NOSIGNAL
Expand Down
8 changes: 4 additions & 4 deletions Source/Misc/server.c → Source/Misc/liblo/src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*/

#ifdef LINUX
#include "lo_config_linux.h"
#include "lo/lo_config_linux.h"
#endif

#ifdef _WIN32
#include "lo_config_win32.h"
#include "lo/lo_config_win32.h"
#endif

#include <assert.h>
Expand Down Expand Up @@ -68,8 +68,8 @@
#define SOCKET_ERROR -1
#endif

#include "lo_types_internal.h"
#include "lo_internal.h"
#include "lo/lo_types_internal.h"
#include "lo/lo_internal.h"
#include "lo/lo.h"
#include "lo/lo_throw.h"

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions Source/Misc/version.c → Source/Misc/liblo/src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
*/

#ifdef LINUX
#include "lo_config_linux.h"
#include "lo/lo_config_linux.h"
#endif

#ifdef _WIN32
#include "lo_config_win32.h"
#include "lo/lo_config_win32.h"
#endif

#ifdef __APPLE__
#include "lo_config_osx.h"
#include "lo/lo_config_osx.h"
#endif

#include <stdio.h>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions Source/Misc/libusb/src/compat.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include "lua.h"
#include "compat.h"

int typeerror(lua_State* L, int narg, const char* tname)
{
const char* msg = lua_pushfstring(L, "%s expected, got %s", tname, luaL_typename(L, narg));
return luaL_argerror(L, narg, msg);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e7ccc06

Please sign in to comment.