Iampete1
da1fde06ad
AP_Scripting: fix skip check userdata feild write
3 years ago
Iampete1
003561ab75
AP_Scripting: Docs: append _ud to userdata types to avoild name clash with new functions and declare local
3 years ago
Iampete1
a70134ba38
AP_Scripting: generator: ouput Emmylua docs
3 years ago
Iampete1
0f8bcbf4b8
AP_Scripting: optimise genrated bindings for size
3 years ago
Iampete1
302e855dab
AP_Scripting: add 'skip_check keyword to skip argument range check
3 years ago
Iampete1
0772af5539
AP_Scripting: generator: dont initalise trivial types
3 years ago
Iampete1
32d6919ae2
AP_Scripting: generator: remove unneeded else in nullable returns
3 years ago
Iampete1
8c7cad8663
AP_Scripting: generator support depends keyword on AP_Object
4 years ago
Iampete1
a6795a8e45
AP_Scripting: support depends keyword on userdata
4 years ago
Iampete1
aad459d447
AP_Scripting: support array userdata feilds
4 years ago
Iampete1
590be4049c
AP_Scripting: support userdata alias
4 years ago
Iampete1
7b3097972b
AP_Scripting: generator: support pointer semaphore flag
4 years ago
Iampete1
c54634e86b
AP_Scripting: generator: finish off refence access implmentation
4 years ago
Iampete1
8effa59d10
AP_Scripting: generator: support method alias and sanitised names
4 years ago
Peter Hall
9997981702
AP_Scripting: generator: support literal singltons that do not need to be fetched
4 years ago
Iampete1
bf7920f2d7
AP_Scripting: use helper for not supported error saving 1K of flash
4 years ago
Iampete1
2a75432fa2
AP_Scripting: Generator: support depends
4 years ago
Iampete1
0668c5c584
AP_Scripting: support pass by refence on none bool return
4 years ago
Pierre Kancir
af1bdcfdfc
AP_Scipting: fix memleak on generator
5 years ago
Siddharth Purohit
913c00dd96
AP_Scripting: add default case to fix uninitialised use situation
5 years ago
Michael du Breuil
1c789c66c3
AP_Scripting: Fix generator for nullable types with multiple return values
5 years ago
Iampete1
2ad81fb425
AP_Scripting: generator: static cast all basic return types
5 years ago
Michael du Breuil
ff007dd017
AP_Scripting: Allow generator to cope with windows line endings
...
Also fixes allowing an extra new line on the depends entries to be
emitted, as well as a possible stack overflow in the generator if
you inserted a malicious comment.
5 years ago
Andy Piper
e9b939ccb5
AP_Scripting: build fix for macOS
5 years ago
Andrew Tridgell
2c6fd13899
AP_Scripting: auto-build the bindings
5 years ago
Michael du Breuil
6753e99604
AP_Scripting: Add a return around luaL_error
...
This is the normal method of calling luaL_error which longjmp's away,
and it helps the static analysis tools realize that anything afterwards
will not be reached
5 years ago
Michael du Breuil
a0bfc823b3
AP_Scripting: Support libraries holding the scheduler lock
5 years ago
Michael du Breuil
51f79c1b10
AP_Scripting: Add support for UART drivers
...
Also improves the handling of uint32_t arguments
5 years ago
Peter Barker
4c5c5fff72
AP_Scripting: add some pointers on how to work with bindings
5 years ago
Michael du Breuil
38e17e2068
AP_Scripting: Add Location get_distance_NED and get_distance_NE
...
Fixes a regression with nil punning which broke Location:offset() and
adds a test script that is suitable for CI to test this sort of thing
5 years ago
Michael du Breuil
610dff61d8
AP_Scripting: Fix nullable arguments numbering, add location bearing
5 years ago
Michael du Breuil
f0e742caa3
AP_Scripting: Fix generation of uint32_t arguments
...
This also fixes the message interval description not generating
correctly, it must have been manually edited before
5 years ago
Michael du Breuil
1e66457755
AP_Scripting: Allow the bindings to descirbe any build dependencies needed
...
Scripting has a hard requirement on AP_Terrain being available, this
allows us to emit a cleaner error message if you have disabled terrain
but not scripting
6 years ago
Michael du Breuil
9e04939adf
AP_Scripting: Protect send_text from reading the stack
...
Also fixes small alignment problem in generated code
6 years ago
Michael du Breuil
6caa700c09
AP_Scripting: Add literal support to the binding layer
6 years ago
Michael du Breuil
f79a3100d0
AP_Scripting: Add arming call, improve range check casting
6 years ago
Michael du Breuil
0054544bd3
AP_Scripting: Add support for enums to be passed through
6 years ago
Michael du Breuil
ed584313bd
AP_Scripting: Remove unneeded debug output, fix the index for singleton errors
6 years ago
Michael du Breuil
d58783664d
AP_Scripting: Update generator to not use readline
6 years ago
Michael du Breuil
104164d2e4
AP_Scripting: Tighten range checks on library calls
6 years ago
Michael du Breuil
8db8dcd2d2
AP_Scripting: Fix up some warnings
...
-Remove some non forward declared issues
-Remove forced min/max values from the enum range check
6 years ago
Michael du Breuil
bd256afee4
AP_Scripting: extract a common argument check helper
...
Allows an easy additional flag for saving flash space
6 years ago
Michael du Breuil
84c2b18e43
AP_Scripting: Support enum types, add millis() remove manual GCS wrapper
...
This introduces enum types for range checking/returns, adds a millis(() call
(this returns a uint32_t), and moves over to an auto generated version of the GCS binding
6 years ago
Michael du Breuil
eddf926433
AP_Scripting: Add support for semaphore protection around singletons
...
This makes the assumption that the semaphore is available via reference, not pointer
For a singleton object this seems like a reasonable API restriction
6 years ago
Michael du Breuil
50b76a27aa
AP_Scripting: Add uint32_t support to generator
6 years ago
Michael du Breuil
7690df1d69
AP_Scripting: Add boxed numerics for uint32_t types
...
Also fixes bad check in send_text that could seg fault in send_text
And fixes the fact that all freshly allocated userdata's need to be
memset
6 years ago
Michael du Breuil
8e50ca9ae4
AP_Scripting: Add stack checking to allocators
6 years ago
Michael du Breuil
1b48ce57f0
AP_Scripting: Add operator overloading
...
Also introduces battmonitor wrappers, and removes an unneeded checkdata
6 years ago
Michael du Breuil
6bcc6d85e7
AP_Scripting: Nullable primitive arguments do not recieve a range check
6 years ago
Michael du Breuil
893779fbcd
AP_Scripting: Introduce fixed minimum range type checking on primitives
6 years ago