Macoy Madson
753ba5b084
Expose waitForAllProcessesClosed
5 days ago
Macoy Madson
39cfe53168
Support pollSubprocessOutput on Windows
6 days ago
Macoy Madson
332a9fd454
Add ability to poll subprocess output
6 days ago
Macoy Madson
2d3b7fa3b4
Also include bundle-file in variables
This is a gamelib tag, but oh well.
1 month ago
Macoy Madson
d4dadeb9b4
Move outputEvalHandle into scope to fix rebuilds
Depending on macro resolution, the MakeContextUniqueSymbolName can end
up returning different results for two different program compilations
in the same directory.
After looking at the code, there was no good reason to not just scope
the variable.
1 month ago
Macoy Madson
ea9c40569e
Support alignment-of on Windows with MSVC 14
1 month ago
Macoy Madson
14472d9661
Merge branch 'master' of macoy.me:macoy/cakelisp
1 month ago
Macoy Madson
9e1c81e2da
Fix invalid read if references resize
These are probably not the only places where this happens.
1 month ago
Macoy Madson
2b277c6f60
Add a function to more easily generate tags
1 month ago
Macoy Madson
8760f118e4
Use the mtable feature to parse enumerants
This feature also allows for detection and ignoring of
comments. However, it's about 10x slower than before, which is pretty
unfortunate.
1 month ago
Macoy Madson
83bc059a1b
Merge branch 'master' of macoy.me:macoy/cakelisp
1 month ago
Macoy Madson
901f0ba29e
Add CTags parser for Cakelisp
This works quite well; I should have done it much sooner!
This works with Universal CTags; see https://ctags.io/ .
1 month ago
Macoy Madson
2697a7c34f
Add swap macro
1 month ago
Macoy Madson
b882418715
Found scary bug with defer and non-trivial returns
I don't have a good fix for detecting this!
2 months ago
Macoy Madson
cfb7f5466f
Allow other variable types to be hidden globals
2 months ago
Macoy Madson
6bbab84f1b
Add another quick file read helper
2 months ago
Macoy Madson
a7bb50e84d
Added each-item-addr-in-addr-array
This isn't the best name, but I'm finding it to be a very common
pattern.
2 months ago
Macoy Madson
93f3913e53
Add emacs formatters
2 months ago
Macoy Madson
6e3839e905
Remove unused type conversions, add token macro
2 months ago
Macoy Madson
19d29984fd
Added simple macro for enums with strings
This makes it easy to serialize enum values to text, and vice-versa.
3 months ago
Macoy Madson
1fe03cf048
Add gross hack to c-for
I wanted a for loop with no initializer. This sucks.
3 months ago
Macoy Madson
fb9e480ab0
Some fixes for Windows builds
3 months ago
Macoy Madson
fcb5773d73
Add C helper for declaring hiddel global vars
Before, you could either make a fully module local or a fully global
variable. This allows you to let the linker resolve to the variable in
other modules, but not without the programmer explicitly exposing it
in the other module.
3 months ago
Macoy Madson
376f55121e
Fix windows compile errors
4 months ago
Macoy Madson
ae08304d91
Fix double free on Windows
4 months ago
Macoy Madson
72d81e2cd3
Fix Windows build
4 months ago
Macoy Madson
7a07330c03
Add global preprocessor defines
4 months ago
Macoy Madson
f106e09ee6
Fix bug with comptime var destruction
The destructor functions weren't marked as required unless the create
variable call was invoked before or during post-references-resolved.
The use-case was setting a build parameter in pre-build for the first
time. Now, get-or-create-comptime-var will add it to required itself.
5 months ago
Macoy Madson
074800d026
Merge branch 'master' of macoy.me:macoy/cakelisp
5 months ago
Macoy Madson
9c9004b234
Make get-or-create-comptime-var take environment
This fixes issues where it is hacky to use from within a
defun-comptime, for example, where environment is not an implicit
argument.
5 months ago
Macoy Madson
ce5ec8789f
Fix missing runProcess address
6 months ago
Macoy Madson
198b3b9983
No longer require C++ in RunProcess.cake
6 months ago
Macoy Madson
012ad2282a
Bump bootstrap version due to new feature used
6 months ago
Macoy Madson
3bd07f43bd
Fix formatting
6 months ago
Macoy Madson
2bd7cda59e
Made RunProcess available as a C interface
* Added (add-cpp-build-options) to single out C++ options. This fixed
a warning from gcc complaining about --std=c++11
* Added some missing metadata
6 months ago
Macoy Madson
c72bc53044
Renamed bit-ones-complement to bit-not
6 months ago
Macoy Madson
c36813c744
Add helpers for forwarding file and line
6 months ago
Macoy Madson
e05a4da09a
Also mark special macros to prevent false error
6 months ago
Macoy Madson
0a2d23c54e
Merge branch 'master' of macoy.me:macoy/cakelisp
6 months ago
Macoy Madson
8f55535aea
Add registerEvaluateMacro for macro edge cases
6 months ago
Macoy Madson
9e2b5c1cc6
Add file and line macros
6 months ago
Macoy Madson
1704d04e72
Use C linkage on FileUtilities.hpp
7 months ago
Macoy Madson
37e56378c0
Fix Cakelisp bootstrap build
This was broken because the C compiler was being used on the Cakelisp
C++ files. Now, the dependencies will be checked for their extensions
before assuming they can be compiled under C as well.
7 months ago
Macoy Madson
d77875a6bc
Replace C compiler hack with sustainable one
* Fixed strdup and realpath not being available by default in standard C
* Increased max path length to more realistic default
* Added buildTimeBuildCommandC for strict C compilation. MSVC
shouldn't need it, but it is available either way
through (set-cakelisp-option build-time-c-compiler)
* Make Test.cpp into Test.c to fix tests
7 months ago
Macoy Madson
ed8d9260b2
Add alignment-of for wrapping alignof in C
7 months ago
Macoy Madson
c957344236
Add extern-c for C++ support of C functions
7 months ago
Macoy Madson
68b8cb782b
Make forward-declare C compatible
* Use typedef struct X X rather than just struct X in C for ease of
use. There may be some drawbacks to this, but whatever.
* Ensure forward-declare marks the module as requiring C++ if it uses
namespace or class.
7 months ago
Macoy Madson
ee2993b3b4
Add require-cpp and make RunProcess.cake required
7 months ago
Macoy Madson
4c537c576a
Add if-c-preprocessor helper
7 months ago
Macoy Madson
75c7aa200c
Merge branch 'master' of macoy.me:macoy/cakelisp
7 months ago