mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
WIP: Updated ecamples and added native main()
This commit is contained in:
1 parent
b0011a10ed
commit
2deb358def
38 files changed
+1292
-99
No files matched your search
+3
-1
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user