1436 Commits

Author SHA1 Message Date
blueloveTH
515321a0af ... 2023-05-09 14:23:28 +08:00
blueloveTH
f397917ff5 ... 2023-05-09 14:05:05 +08:00
blueloveTH
13debcd722 ... 2023-05-09 14:03:01 +08:00
Kolten Pearson
ae34a6304a gcc didn't like us catching the runtime_error 2023-05-08 20:45:59 -06:00
Kolten Pearson
e2bf81d7f2 added a pkpy_vm_push method 2023-05-08 20:41:44 -06:00
BLUELOVETH
dd2637fabc
Update pocketpy.h 2023-05-08 17:29:22 +08:00
BLUELOVETH
f134322987
Update pocketpy.h 2023-05-08 17:28:47 +08:00
BLUELOVETH
387425230f
Merge pull request #72 from koltenpearson/c_binding_api
adjusted exceptions to be back to using Exception in c bindings
2023-05-08 14:48:34 +08:00
Kolten Pearson
8abaebbf9f adjusted exceptions to be back to how they were before, implementation
is brittle but functional for current use cases
2023-05-07 11:58:35 -06:00
blueloveTH
d5e2dbd1fd ... 2023-05-07 20:59:57 +08:00
blueloveTH
9fb35f69ba ... 2023-05-07 20:50:51 +08:00
BLUELOVETH
bed6325890
Merge pull request #70 from koltenpearson/c_binding_api
revamped c bindings
2023-05-07 20:02:23 +08:00
blueloveTH
805a7ca01f a tiny change 2023-05-07 19:57:27 +08:00
Kolten Pearson
7de39b0cda switched to NameError for the type of error to use when a global can't
be found
2023-05-06 19:31:48 -06:00
Kolten Pearson
dd2212fbad switched to using vm->AttributeError for missing global 2023-05-06 19:23:41 -06:00
Kolten Pearson
f4d2c401f7 adjusted to change in vm constructor 2023-05-05 18:46:20 -06:00
Kolten Pearson
0b4d7a05e3 Merge remote-tracking branch 'origin/main' into c_binding_api 2023-05-05 18:39:52 -06:00
blueloveTH
8489bbb2c5 ... 2023-05-04 21:50:01 +08:00
blueloveTH
3429068d63 ... 2023-05-04 16:51:44 +08:00
blueloveTH
db2492829b ... 2023-05-04 16:44:45 +08:00
blueloveTH
6b25aae3f7 ... 2023-05-04 16:38:33 +08:00
blueloveTH
5616c87a23 ... 2023-05-04 16:22:55 +08:00
blueloveTH
564e377349 ... 2023-05-03 21:46:59 +08:00
blueloveTH
06068ab3e0 ... 2023-05-03 21:43:37 +08:00
blueloveTH
cdbd884398 ... 2023-05-03 20:52:18 +08:00
blueloveTH
744e5c20b0 ... 2023-05-03 20:22:36 +08:00
blueloveTH
66052fadd5 ... 2023-05-03 16:49:26 +08:00
blueloveTH
2f5e2a20f5 ... 2023-05-03 16:41:35 +08:00
blueloveTH
f60cd8a21e fix a bug 2023-05-03 16:09:37 +08:00
blueloveTH
849c6aabb5 ... 2023-05-03 14:20:18 +08:00
Kolten Pearson
3d8627410f added a function to check for errors without clearing them 2023-05-02 23:11:41 -06:00
Kolten Pearson
cbe99e6089 set the void* in LuaStyleFuncC back to a VM* 2023-05-02 22:29:06 -06:00
Kolten Pearson
ec7fefe302 cleanup line endings 2023-05-02 22:23:25 -06:00
Kolten Pearson
2c96dbe7ea added hook into garbage collector 2023-05-02 22:18:03 -06:00
Kolten Pearson
ed6d2fcad7 Merge branch 'main' into c_binding_api 2023-05-02 22:09:34 -06:00
Kolten Pearson
5852ba7435 switch to using subclass for c virtual machine, strings methods return
strong references, except one new one which returns a weak refrence
2023-05-02 22:08:18 -06:00
blueloveTH
468f7a3c22 fix a bug 2023-05-02 10:56:00 -07:00
blueloveTH
450b7e1e3c ... 2023-05-02 21:31:45 +08:00
blueloveTH
0912e88ac7 ... 2023-05-02 21:20:01 +08:00
Kolten Pearson
d1f9aab008 added operations for working with void* as well as a way to check
if a global exists
2023-05-02 00:35:22 -06:00
Kolten Pearson
54134bfecb adjusted api so that api user is no longer responsible for freeing
returned strings
2023-05-01 23:26:55 -06:00
Kolten Pearson
87a76936d6 fixed test cases failing 2023-05-01 21:17:09 -06:00
Kolten Pearson
669bf8b9b1 adjusted things so that we minimize the number of changes necessary to
the main pocketpy library
2023-05-01 20:35:38 -06:00
Kolten Pearson
75de7b0b63 Merge branch 'main' of https://github.com/blueloveTH/pocketpy into c_binding_api 2023-05-01 18:28:17 -06:00
blueloveTH
a7ee33c2e3 make ValueStack a template class 2023-05-01 19:59:28 +08:00
blueloveTH
d93af53776 ... 2023-05-01 19:36:37 +08:00
blueloveTH
1444c4b380 ... 2023-05-01 19:33:49 +08:00
blueloveTH
a0770d4191 ... 2023-05-01 19:23:25 +08:00
Kolten Pearson
c235b6750b Merge branch 'main' into c_binding_api 2023-05-01 00:13:36 -06:00
Kolten Pearson
d57b977074 cleanup whitespace shuffling in several files 2023-05-01 00:12:17 -06:00