Git Product home page Git Product logo

slb's People

Contributors

pplux avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

slb's Issues

Missing stdlib include causes malloc to not be linked properly

What steps will reproduce the problem?
1. Compile SLB on GCC 4.6.3


What is the expected output? What do you see instead?

You get the error: "there are no arguments to 'malloc' that depend on a 
template parameter, so a declaration of 'malloc' must be available (if you use 
'-fpermissive', G++ will accept your code, but allowing the use of an 
undeclared name is deprecated)"


What version of the product are you using? On what operating system?

Latest trunk, on Ubuntu 12.04.


Please provide any additional information below.

This is because malloc is not explicitly included from any header file.  Adding 
an explicit declaration to stdlib.h or cstdlib.h seems to resolve it.

Original issue reported on code.google.com by [email protected] on 17 Feb 2013 at 4:59

Attachments:

Compile problems with LLVM/clang

What steps will reproduce the problem?
1. Have LLVM and clang 2.8 installed
2. use either SLB-1.63 or pull from code.google.com
3. run 'CC="clang" CXX="clang++" cmake ./ && make'

What is the expected output? What do you see instead?
(See attached build log)

What version of the product are you using? On what operating system?
I'm using Gentoo with LLVM-2.8-r2 and clang-2.8-r2.

Please provide any additional information below.
This might of course be a LLVM/Clang issue as gcc compiles slb just fine 
although clang c++ status page states that "Clang currently implements all of 
the ISO C++ 1998 standard (including the defects addressed in the ISO C++ 2003 
standard)" [1].

[1]: http://clang.llvm.org/cxx_status.html

Original issue reported on code.google.com by [email protected] on 8 Jan 2011 at 6:31

Attachments:

SLB-1.70 and lua 5.1.4: vector and ivector tests cause exceptions with Visual Studio 2010.

What steps will reproduce the problem?
1. Build lua, slb, and unit tests with Visual Studio 2010
2. Run tests vector and ivector scripts.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
SLB-1.70
lua 5.1.4
Visual Studio 2010
Windows 7

Please provide any additional information below.
ivector.lua results in exception due to "Unknown class in"
vector.lua will run in Release mode but causes exception in Debug mode.

Original issue reported on code.google.com by [email protected] on 4 May 2011 at 5:21

[REQ] Add property for class from SLB2

With SLB2 it was possible to add access to a member variable by using the 
property method. I.e.

SLB::Class<ivec4>(IVEC4_LUA_TABLE_NAME, luaProgram->slbManager())
  .constructor()
  .set("length", &ivec3::length)
  .property("x", &ivec4::x)
  .property("y", &ivec4::y)
  .property("z", &ivec4::z)
  .property("w", &ivec4::w);

I can't find what the equivalent way of doing this in SLB3 would be.

Original issue reported on code.google.com by [email protected] on 10 Jan 2014 at 2:26

HG 2013-03-19 Linux Compilation Issues

I noticed some problems trying to compile the latest HG revision of SLB3, and I 
went ahead and fixed them, and ran hg export on my changeset.

The problems were a missing linking step to -pthread on Linux, as well as some 
case-sensivity issues (i.e. <slb3/implementation.h> instead of 
<SLB3/implementation.h>). There was also one file that did not include 
<cstring> and thus failed when trying to use a particular function.

The patch is attached, just run hg import linux_fix.hgpatch in the repo to 
include it.

Original issue reported on code.google.com by [email protected] on 19 Mar 2013 at 7:42

Attachments:

doesn't work with bool

i have a problem with a templated class and bool as its template argument. see 
this class

https://gitorious.org/codingninja/baukasten/blobs/develop/src/core/include/gener
ic_state.h

which is quite simple. see the declarations at the bottom

    StateInt
    StateString
    StateBool

where the first two work without any problems. if i try to call setValue on a 
StateBool in a lua script it throws the following exception:

terminate called after throwing an instance of 'std::runtime_error'
  what():  SLB Exception: 
-------------------------------------------------------
Lua Error:
        scripts/update_state.lua:10: Unknown class b
Traceback:
         [ 0 (C) ] 
         [ 1 (C) ]  @ setValue(method)
         [ 2 (main) ] scripts/update_state.lua:10

here's the lua snippet which would work if i change the type of the variable 
from StateBool to StateInt:

...
testState:setValue( false )
...

here's the definition of the binding:

https://gitorious.org/codingninja/baukasten/blobs/develop/src/core/include/lua/g
lobal.h

any ideas?

Original issue reported on code.google.com by [email protected] on 8 Sep 2011 at 8:15

compilation fails with clang-2.9

switch to clang++ to see whether it works ... just being curious. got this 
error message:

In file included from 
/home/noobsaibot/projekte/cpp/baukasten/src/core/include/slb/SLB.hpp:35:
/home/noobsaibot/projekte/cpp/baukasten/src/core/include/slb/Type.hpp:75:24: 
error: no member named 'check' in 'SLB::ClassInfo'
                        return getClass(L)->check(L, pos);
                               ~~~~~~~~~~~  ^
/home/noobsaibot/projekte/cpp/baukasten/src/core/include/slb/Type.hpp:148:24: 
error: no member named 'check' in 'SLB::ClassInfo'                              

                        return getClass(L)->check(L, pos);
                               ~~~~~~~~~~~  ^
/home/noobsaibot/projekte/cpp/baukasten/src/core/include/slb/Type.hpp:205:24: 
error: no member named 'check' in 'SLB::ClassInfo'                              

                        return getClass(L)->check(L, pos);
                               ~~~~~~~~~~~  ^

not a deal breaker for me. just so you know ;)

Original issue reported on code.google.com by [email protected] on 9 Sep 2011 at 6:52

call base class's functions from a 3rd level derived class does not resolve

if I expose the hierarchy below, foo function fails to resolve when called from 
a C object.

=======================

Lua :

b = B()  
c = C()  

print(b:foo())  -- works
print(c:foo())  -- doesn't work

=======================

c++:

struct A
{
 const char* foo() const { return "foo"; }
};

struct B : public A
{
};

struct C: public B
{
};


SLB::Class<A>("A")
.constructor()
.set("foo", &A::foo);

SLB::Class<B>("B")
.inherits<A>()
.constructor();

SLB::Class<C>("C")
.inherits<B>()
.constructor();

Original issue reported on code.google.com by [email protected] on 22 Oct 2011 at 7:32

[REQ] Bind Standalone Member Functions

Would it be possible to add the ability to bind a member function? There is 
already the ability for a c function like:

m->set( "c_function", SLB::FuncCall::create(c_function));

But could we have something like:

struct Foo
{
    int Bar(int a, int b) { return a*b; }
};

Foo f;
m->set( "Bar", SLB::FuncCall::create(Foo::Bar), &f);

Original issue reported on code.google.com by [email protected] on 16 Feb 2012 at 4:51

Default error handler doesn't clear the buffer

What steps will reproduce the problem?
1. Run the script with a syntax error
2. See the description you receive with std::exception 
3. Run it again 
4. See the description now contains doubled description
...
N. See how description becomes extremely huge.


What version of the product are you using? On what operating system?

SLB 2.0b


Fix:

To fix you need to clear the stream and set an empty string
void DefaultErrorHandler::begin(const char *error)
{
  _out.clear();
  _out.str(""); //<<<<<< Add this line to fix it.


Works fine for me now. 
For references see 
http://stackoverflow.com/questions/624260/how-to-reuse-an-ostringstream

Original issue reported on code.google.com by [email protected] on 25 Jan 2012 at 3:23

Trailing comma in enum

What steps will reproduce the problem?
1.Attempt to compile with xcode3
2.
3.

What is the expected output? What do you see instead?
Expect a binary however it results in a compilation error.
Trailing comma is in Table::Action
https://code.google.com/p/slb/source/browse/include/SLB3/table.h#37

What version of the product are you using (2.xx, 3.xx, hg rev )? On what
operating system?
Head OS X 10.6


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 11 Oct 2014 at 7:37

Could not

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 9 Jun 2011 at 1:59

Doesn't compile on gcc4.7 when c++11 is enabled (fix attached)

What steps will reproduce the problem?
1. Add SLB3 on a c++11 project 
2. Compile it with -std=c++11 and g++ 4.7

What is the expected output? What do you see instead?

With gcc4.7 it fails to build and the error message is:

/slb_test/slb/include/SLB3/internal/../internal/value_primitives_ptr.h: In 
static member function 'static void SLB3::Value<const void*>::Push(lua_State*, 
const void*)':
/slb_test/slb/include/SLB3/internal/../internal/value_primitives_ptr.h:73:1: 
error: unable to find string literal operator 'operator"" Name'

With gcc4.8 the same error is a warning:

/slb_test/slb/include/SLB3/info.h:175:41: warning: invalid suffix on literal; 
C++11 requires a space between literal and identifier [-Wliteral-suffix]
       const char* name() const { return "const "Name" &"; }


I've attached a patch that fixes the issue and it also adds a SLB3 prefix in 
some macros.


Original issue reported on code.google.com by [email protected] on 12 Dec 2013 at 2:46

Attachments:

License Mismatch

Google Code says license is MIT License, but code has LGPL license in it.

Original issue reported on code.google.com by [email protected] on 21 Jul 2010 at 2:38

Error messages get stomped when loading files

When attempting to load a file with syntax or other errors, SLB checks the 
return status of luaL_loadfile and sets _lastError appropriately. However, it 
then goes on to unconditionally try to execute the loaded object, which in the 
case of an error may not be a function. 

The result is an unhelpful error message like

    SLB Exception: 
    -------------------------------------------------------
    Lua Error:
            attempt to call a string value
    Traceback:
             [ 0 (C) ] 

Applying a patch like

diff --git a/src/Script.cpp b/src/Script.cpp
--- a/src/Script.cpp
+++ b/src/Script.cpp
@@ -171,7 +171,7 @@ namespace SLB {
     }

     // otherwise...
-    if( _errorHandler->call(_lua_state, 0, 0))
+    if(result && _errorHandler->call(_lua_state, 0, 0))
     {
       _lastError = lua_tostring(L,-1);
       result = false;

seems to produce more appropriate error messages, such as

    cannot open test1.lua: No such file or directory

or

    test1.lua:41: syntax error near <eof>

Original issue reported on code.google.com by [email protected] on 21 Aug 2012 at 5:10

Warnings with VS2010 /W4

With Visual studio 2010 with /W4 i got those warnings


warning C4100: 'ref' : unreferenced formal 
parameter   i:\..\slb\include\instance.hpp  137
warning C4100: 'p' : unreferenced formal 
parameter   i:\..\slb\include\allocator.hpp 109
warning C4100: 'dummyARG' : unreferenced formal 
parameter   i:\..\slb\include\luacall.hpp   113
warning C4100: 'L' : unreferenced formal 
parameter   i:\..\slb\include\script.hpp    81
warning C4100: 'L' : unreferenced formal 
parameter   i:\..\slb\include\script.hpp    82

Thank you for your great project! 

Original issue reported on code.google.com by [email protected] on 27 May 2011 at 4:22

Compile error on Visual Studio 2008 C++

What steps will reproduce the problem?
1. Press F7 to compile in Visual Studio 2008 C++

What is the expected output? What do you see instead?
1 Succeeded, 0 Errors.
0 Succeeded, 1 Errors.

What version of the product are you using? On what operating system?
Mar 24, 2009. Windows XP.

Please provide any additional information below.
Error   3   error C2491: 'SLB::Manager::_singleton' : definition of dllimport
static data member not allowed  c:\luatest\luatest\slb\manager.cpp  211


Original issue reported on code.google.com by [email protected] on 26 Mar 2010 at 12:33

Could not complie on android ndk r5

What steps will reproduce the problem?
1.when complie file that include luacall.hpp
2.is there any define I missed?
3.

What is the expected output? What do you see instead?

# ndk-build
Compile++ thumb  : SLB <= ClassInfo.cpp
In file included from E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni
/include/SLB/Hybrid.hpp:36,
                 from E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni
/src/ClassInfo.cpp:31:
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:59: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:59: error: expected ';' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R()>::operator==(const SLB::LuaCall<R(
)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R(T1)>::operator==(const SLB::LuaCall<
R(T1)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R(T1, T2)>::operator==(const SLB::LuaC
all<R(T1, T2)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R(T1, T2, T3)>::operator==(const SLB::
LuaCall<R(T1, T2, T3)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R(T1, T2, T3, T4)>::operator==(const S
LB::LuaCall<R(T1, T2, T3, T4)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R(T1, T2, T3, T4, T5)>::operator==(con
st SLB::LuaCall<R(T1, T2, T3, T4, T5)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R(T1, T2, T3, T4, T5, T6)>::operator==
(const SLB::LuaCall<R(T1, T2, T3, T4, T5, T6)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R(T1, T2, T3, T4, T5, T6, T7)>::operat
or==(const SLB::LuaCall<R(T1, T2, T3, T4, T5, T6, T7)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R(T1, T2, T3, T4, T5, T6, T7, T8)>::op
erator==(const SLB::LuaCall<R(T1, T2, T3, T4, T5, T6, T7, T8)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R(T1, T2, T3, T4, T5, T6, T7, T8, T9)>
::operator==(const SLB::LuaCall<R(T1, T2, T3, T4, T5, T6, T7, T8, T9)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<R(T1, T2, T3, T4, T5, T6, T7, T8, T9,
T10)>::operator==(const SLB::LuaCall<R(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>
&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:92: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'void SLB::LuaCall<void()>::operator()(char)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: invalid conversion from 'int' to 'lua_State*'
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error:   initializing argument 1 of 'int lua_gettop(lua_State*)'
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: invalid conversion from 'int' to 'lua_State*'
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error:   initializing argument 1 of 'void lua_rawgeti(lua_State*, int, i
nt)'
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: invalid conversion from 'int' to 'lua_State*'
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error:   initializing argument 1 of 'void lua_settop(lua_State*, int)'
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void()>::operator==(const SLB::LuaCall
<void()>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void(T1)>::operator==(const SLB::LuaCa
ll<void(T1)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void(T1, T2)>::operator==(const SLB::L
uaCall<void(T1, T2)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void(T1, T2, T3)>::operator==(const SL
B::LuaCall<void(T1, T2, T3)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void(T1, T2, T3, T4)>::operator==(cons
t SLB::LuaCall<void(T1, T2, T3, T4)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void(T1, T2, T3, T4, T5)>::operator==(
const SLB::LuaCall<void(T1, T2, T3, T4, T5)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void(T1, T2, T3, T4, T5, T6)>::operato
r==(const SLB::LuaCall<void(T1, T2, T3, T4, T5, T6)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void(T1, T2, T3, T4, T5, T6, T7)>::ope
rator==(const SLB::LuaCall<void(T1, T2, T3, T4, T5, T6, T7)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void(T1, T2, T3, T4, T5, T6, T7, T8)>:
:operator==(const SLB::LuaCall<void(T1, T2, T3, T4, T5, T6, T7, T8)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void(T1, T2, T3, T4, T5, T6, T7, T8, T
9)>::operator==(const SLB::LuaCall<void(T1, T2, T3, T4, T5, T6, T7, T8, T9)>&)':

E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp: In member function 'bool SLB::LuaCall<void(T1, T2, T3, T4, T5, T6, T7, T8, T
9, T10)>::operator==(const SLB::LuaCall<void(T1, T2, T3, T4, T5, T6, T7, T8, T9,
 T10)>&)':
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/LuaCall.h
pp:114: error: expected ')' before numeric constant
In file included from E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni
/src/ClassInfo.cpp:31:
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/Hybrid.hp
p: At global scope:
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/Hybrid.hp
p:105: error: expected unqualified-id before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/Hybrid.hp
p:105: error: expected ';' before numeric constant
E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/Hybrid.hp
p: In member function 'virtual lua_State* SLB::HybridBase::getLuaState() const':

E:/android/android-ndk-r5b/samples/test-new-lua/jni/../jni/include/SLB/Hybrid.hp
p:65: error: invalid conversion from 'int' to 'lua_State*'
make: *** [/cygdrive/e/android/android-ndk-r5b/samples/test-new-lua/obj/local/ar
meabi/objs/SLB/src/ClassInfo.o] Error 1



What version of the product are you using? On what operating system?
cygwin + windowsxp32

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 9 Jun 2011 at 2:04

WIN32 Crash

What steps will reproduce the problem?
1. Define SLB_LIBRARY
2. Build .dll
3. Build .exe that links to .dll
4. Execute .exe, get access violation prior to DllMain() inside of .dll

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
SLB 1.61, Windows XP 32bit

Please provide any additional information below.
The problem is with MutexData.  It defines MutexData to be LPSCRITICAL_SECTION, 
then later calls InitializeMutex() with that address.  The address is supposed 
to point to an allocated CRITICAL_SECTION object -- InitializeMutex() does not 
allocate it, just initializes it.

I solved this by defining MutexData to be CRITICAL_SECTION, and changing the 
Mutex() class to pass in "&_m" instead of "_m" to InitializeCriticalSection, 
DeleteCriticalSection, EnterCriticalSection, LeaveCriticalSection, and 
TryEnterCriticalSection.

Original issue reported on code.google.com by [email protected] on 26 Jul 2010 at 9:08

Parameter checking

What steps will reproduce the problem?
1. Declare and implement a class with SLB3
2. Call a method from this class from Lua code with too many, not enough or 
parameters with unexpected types

What is the expected output? What do you see instead?
The method is called with default parameter values.
An error should be thrown, or at least the method should have a way to check 
the parameters count and types.

What version of the product are you using (2.xx, 3.xx, hg rev )? On what
operating system?
SLB3, hg commit ca960f74cd93, GNU/Linux.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 1 Apr 2013 at 10:54

Unable to register variadic (/vararg/ellipsis) C functions using SLB::Manager

What steps will reproduce the problem?
1. Unable to register variadic C functions using SLB::Manager

What is the expected output? What do you see instead?
Attempting to register using .set of SLB::Manager gives the gcc/g++ compile 
error: invalid conversion from 'void (*)(char const*, ...)' to 'lua_CFunction 
{aka int (*)(lua_State*)}' [-fpermissive]

What version of the product are you using? On what operating system?
Using SLB-2.00 on Lua 5.2.1.


Please provide any additional information below.
Doing this

void foo(char const *format, ...);
slbMgr.set("foo", SLB::FuncCall::create(foo));


gives the error

...error: invalid conversion from 'void (*)(char const*, ...)' to 
'lua_CFunction {aka int (*)(lua_State*)}' [-fpermissive]
...SLB-2.00/SLB.hpp:2173:22: error:   initializing argument 1 of 'static 
SLB::FuncCall* SLB::FuncCall::create(lua_CFunction)' [-fpermissive]

Original issue reported on code.google.com by [email protected] on 16 Jan 2013 at 12:48

unable to call a const std::string foo() const; method.

What steps will reproduce the problem?
1. create a class with a const method with a const return type
2. define wrapper for the class
3. const_set("method", &Class::method)

What is the expected output? What do you see instead?
being able to call the method from lua.

What version of the product are you using? On what operating system?
cloned from hg.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 20 Aug 2011 at 12:00

Wrong function called in __Self &__eq( bool (*func)(T1,T2) ) in Class.hpp

Currently it looks like this:
    template<class T1, class T2>
    __Self &__eq( bool (*func)(T1,T2) )
    {
      _class->setObject__newindex( FuncCall::create(func) ); return *this;
    }

Should instead be:
    template<class T1, class T2>
    __Self &__eq( bool (*func)(T1,T2) )
    {
       _class->set__eq( SLB_FuncCall::create(func) ); return *this;
    }

Original issue reported on code.google.com by [email protected] on 1 Feb 2013 at 10:48

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.