Commit Graph

10 Commits (ec81047ac19d0a657d3ca5bcd47941df3f0460e5)

Author SHA1 Message Date
Carl Schwan ec81047ac1
Use pattern matching instead of if and else that return true and false
Differential Revision: https://phabricator.kde.org/D16576
2018-11-01 10:30:05 +01:00
Jos van den Oever 385ae17bb7 Pass the emitter as mutable. It is pointless otherwise. 2018-10-26 00:32:02 +02:00
Jos van den Oever b603a2262b Only allow mutable objects to call back into C++
When an object calls into C++, that C++ code may again call into Rust.
The original call might have an immutable reference and the nested
call could receive a mutable reference. That is not allowed and
undefined behaviour. For this reason, calling into C++ is only allowed
from mutable objects.
2018-10-25 18:06:19 +02:00
Jos van den Oever fac04fd6d4 Remove unneeded annotations 2018-09-29 23:47:23 +02:00
Jos van den Oever 13d8d1cf1d Use AtomicPtr instead of Mutex 2018-09-29 23:28:24 +02:00
Jos van den Oever 6ee8ca626d Add function to create bindings from runtime Config object 2018-09-28 23:38:44 +02:00
Jos van den Oever d7860d9031 Also check for module directory 2018-09-28 18:40:01 +02:00
Jos van den Oever 034e5526cf Add missing ? 2018-09-28 18:08:19 +02:00
Jos van den Oever b3e43ae1d2 Handle result of write! and writeln!
This is probably the patch with the largest amount of question marks added to code ever.
2018-09-28 18:05:10 +02:00
Jos van den Oever d7e4f1362d Port rust_qt_binding_generator from C++ to Rust 2018-09-28 12:11:57 +02:00