(Deleted) Milton, or '-D defines' can be defined and undefined at the same time in OpenSpin


30
views
0
11 weeks ago by
yeti  
OpenSpin's preprocessor(s) seem to have problems with defines.

Short:
$ cat Newton.spin
#ifdef X
#warning X defined
#endif

#ifndef X
#warning X not defined
#endif

pub Newton
$ /opt/openspin/bin/openspin -u -D X Newton.spin
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.80 Compiled on Aug 15 2017 15:07:36
Compiling...
Newton.spin
Newton.spin:2: warning: #warn: X defined
Newton.spin:6: warning: #warn: X not defined
Done.
Unused Method Elimination:
Nothing removed.
--------------------------
Program size is 28 bytes

Long:
—▶ https://github.com/parallaxinc/OpenSpin/issues/37

That's only described/tested with -D xyzzy command line option because that's the case I need(ed).

It fails on single file sources when using the-uoption and it fails (without -u) on sources with objects.

Update-20171008:
Now confirmed being a bug. The Chef looks at it.

——————————
Testing post type "Article/Blog/Note" to see what's different to post type "Question".
Ok,
once written as one post type it looks like re-typing is impossible.
Maybe this one better should have been of type "News" because if the issue is fixed, this turns into old news to wrap your fish and chips in it.
Community: Parallax

Similar posts:
Search »
  • Nothing matches yet.