Giter Site home page Giter Site logo

luna-gen's People

Contributors

taesoobear avatar

luna-gen's Issues

Does not compile with gcc

What steps will reproduce the problem?
1. Try to compile with gcc
2.
3.


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

Please provide any additional information below.
It would seem to me that you have not tried to compile the generated code with 
gcc as it is not valid C++. 
You will gets errors that you are missing "template<>" from initialisations of 
static members in the cpp file.
You are defining static member functions in the cpp file which no other 
translation unit can see.
The "Register_" function is not declared in the generated header.

Original issue reported on code.google.com by [email protected] on 11 Dec 2012 at 4:47

Forgot std:: for cout

Since the generated file doesn't do using namespace std; cout needs the 
namespace prefix in luna_gen.lua. It may even be better to use std::cerr 
instead of std::cout in this case.

Original issue reported on code.google.com by losinggeneration on 20 Aug 2011 at 1:49

Attachments:

Pass by reference and pass by pointer

Perhaps I'm doing something incorrect here, but it seems that pass by reference 
and pass by pointer don't work. Attached is the test case.

Original issue reported on code.google.com by losinggeneration on 22 Aug 2011 at 11:23

Attachments:

Compile scripts fails on Mac OSX 10.6

What steps will reproduce the problem?
1. run ./make.sh
2.
3.

What is the expected output? What do you see instead?
I don't know :) Fails to generate test files

./make.sh
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Found Lua51: /usr/local/lib/liblua.dylib
include directories:
/usr/local/include/lua

add_luna_test garbage_collection
add_luna_test var_arg
add_luna_test property
add_luna_test inheritance
add_luna_test operator_overloading
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/apple/Documents/projects/lua-gen-binding/luna-gen/test_luna/build_unix
[  5%] Generating ../generated/test_garbage_collection.cpp
/Users/apple/Documents/projects/lua-gen-binding/luna-gen/test_luna/generated/tes
t_garbage_collection.cpp: No such file or directory
Scanning dependencies of target test_garbage_collection
[  5%] Generating ../generated/test_garbage_collection.cpp
/Users/apple/Documents/projects/lua-gen-binding/luna-gen/test_luna/generated/tes
t_garbage_collection.cpp: No such file or directory
[ 10%] Building CXX object 
CMakeFiles/test_garbage_collection.dir/generated/test_garbage_collection.cpp.o
i686-apple-darwin10-g++-4.2.1: 
/Users/apple/Documents/projects/lua-gen-binding/luna-gen/test_luna/generated/tes
t_garbage_collection.cpp: No such file or directory
i686-apple-darwin10-g++-4.2.1: no input files
make[2]: *** 
[CMakeFiles/test_garbage_collection.dir/generated/test_garbage_collection.cpp.o]
 Error 1
make[1]: *** [CMakeFiles/test_garbage_collection.dir/all] Error 2
make: *** [all] Error 2


What version of the product are you using? On what operating system?
Head, Mac OsX 10.6

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 13 Aug 2011 at 2:47

Support for ==, !=, <=, and >= overloaded operators

It looks like ==, !=, <=, and >= are not in implemented to be parsed (probably 
more accurately, eq, lt, & gt since there is no direct 'ne' for ~=). While 
parsing those operators, luna-gen's parseMemberFunction thinks the overloaded 
operator is a function with a default argument. It would be nice if at least 
eq, lt, & gt are implemented. != would be a nice too, but could be skipped, as 
it can just be done in Lua with "not (a == b)"

Original issue reported on code.google.com by losinggeneration on 22 Aug 2011 at 5:40

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.