CMakePP / CMakePPLang

Object-oriented extension to the CMake language.
http://cmakepp.github.io/CMakePPLang/
Apache License 2.0
11 stars 4 forks source link

CPP class member functions desc parameters are truncated to first space #12

Closed blakemulnix closed 4 years ago

blakemulnix commented 4 years ago

When passing desc arguments with more than one word to a CPP member function, the value of the desc is truncated to the first word.

For example:

cpp_class(MyClass)

    cpp_member(my_func MyClass desc)
    function("${my_func}" self param_a)
        message("param_a = ${param_a}")
    endfunction()

cpp_end_class()

MyClass(CTOR my_instance)
MyClass(my_func "${my_instance}" "Here is a desc with spaces between words.")

produces:

param_a = Here

I would expect the entire value of the desc to be output.