Code Monkey home page Code Monkey logo

ppl's People

Contributors

alerted avatar hopobcn avatar kellpossible avatar philippmuenzel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ppl's Issues

Build failure on Ubuntu 18.04

Hi,

I just found PPL and it looks promising. I might use it in ExtPlane or my other future plugins.

~/src/PPL$ qmake
Info: creating stash file /home/vranki/src/PPL/.qmake.stash
~/src/PPL$ make
g++ -c -pipe -Wextra -Wfloat-equal -Wno-c++11-narrowing -pedantic -fvisibility=hidden -O2 -fPIC -std=gnu++1y -Wall -W -DXPLM200 -DXPLM210 -DPRIVATENAMESPACE= -DAPL=0 -DIBM=0 -DLIN=1 -DNDEBUG -I. -Iinclude/simpleini -I../SDK/CHeaders/XPLM -I../SDK/CHeaders/Widgets -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o objects/pluginpath.o src/pluginpath.cpp
In file included from src/pluginpath.h:34:0,
                 from src/pluginpath.cpp:34:
src/namespaces.h:40:54: error: conflicting declaration of namespace ‘PPL’
 namespace PPLNAMESPACE{} namespace PPL = PPLNAMESPACE;
                                                      ^
src/namespaces.h:37:32: note: previous declaration of namespace ‘PPL’ here
 #define PPLNAMESPACE EVALUATOR(PPL, PRIVATENAMESPACE)
                                ^
src/namespaces.h:35:21: note: in definition of macro ‘PASTER’
 #define PASTER(x,y) x ## y
                     ^
src/namespaces.h:37:22: note: in expansion of macro ‘EVALUATOR’
 #define PPLNAMESPACE EVALUATOR(PPL, PRIVATENAMESPACE)
                      ^~~~~~~~~
src/namespaces.h:40:11: note: in expansion of macro ‘PPLNAMESPACE’
 namespace PPLNAMESPACE{} namespace PPL = PPLNAMESPACE;
           ^~~~~~~~~~~~
cc1plus: warning: unrecognized command line option ‘-Wno-c++11-narrowing’
Makefile:426: recipe for target 'objects/pluginpath.o' failed
make: *** [objects/pluginpath.o] Error 1

X-Plane SDK is in ../SDK (had to look in the .pro file to figure this out).

Documentation should be added to README.md (or a link to docs if they exist somewhere).. I might be doing something wrong here.

numeric != bitwise comparison

Hi Philip,
I think you should not do

if ( XPLMGetDataRefTypes(m_data_ref) != (xplmType_Float | xplmType_Double) )

XPLMGetDataRefTypes(m_data_ref) is an enum with [0,1,2,4,8,16,32]
and
(xplmType_Float | xplmType_Double) is always 6

Why don't you just write
XPLMGetDataRefTypes(m_data_ref) != xplmType_Double ?

DataRef<std::string> consistency.

There is some behavior in this specialization, which I find a little bit inconsistent.
For example, if we have variable of type DataRefstd::string called strDrf:

std::string initial = "Initial";
strDrf = initial;
std::string returned = strDrf;
if (initial != returned) {
XPLMDebugString("Surprise!");
}

I understand that dataref holds C-string in data inside. But I suppose operator std::string() method should cut the last symbol after creation std::string from stored data and returning it.

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.