WIP: Updated ecamples and added native main()

This commit is contained in:
Chad Attermann committed 2025-08-20 22:05:11 -06:00
1 parent b0011a10ed
commit 2deb358def
38 files changed
+1292 -99

No files matched your search

+3 -1
View File
@@ -47,6 +47,8 @@ namespace RNS {
// CBA handle data coming in on interface
//virtual void handle_incoming(const Bytes& data);
virtual inline std::string toString() const { return "Interface[" + _name + "]"; }
protected:
Interface* _parent = nullptr;
bool _IN = false;
@@ -172,7 +174,7 @@ namespace RNS {
inline bool is_local_shared_instance() const { assert(_impl); return _impl->_is_local_shared_instance; }
inline HInterface parent_interface() const { assert(_impl); return _impl->_parent_interface; }
virtual inline std::string toString() const { if (!_impl) return ""; return "Interface[" + _impl->_name + "]"; }
virtual inline std::string toString() const { if (!_impl) return ""; return _impl->toString(); }
#ifndef NDEBUG
inline std::string debugString() const {
+9
View File
@@ -0,0 +1,9 @@
#include <stdio.h>
#ifdef NATIVE
int main(void) {
printf("\nSilly rabbit, microReticulum is a library!\n\nSee the examples directory for example programs that make use of this library.\n\n");
}
#endif