| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #ifndef LYTHON_NATIVE_HEADER | ||
| 2 | #define LYTHON_NATIVE_HEADER | ||
| 3 | |||
| 4 | #include "dtypes.h" | ||
| 5 | #include "utilities/object.h" | ||
| 6 | |||
| 7 | namespace lython { | ||
| 8 | |||
| 9 | // TODO: allow native object to register their own methods | ||
| 10 | struct NativeObject: GCObject { | ||
| 11 | |||
| 12 | virtual bool is_native() const { return true; } | ||
| 13 | |||
| 14 | }; | ||
| 15 | |||
| 16 | |||
| 17 | |||
| 18 | |||
| 19 | } // namespace lython | ||
| 20 | |||
| 21 | #endif | ||
| 22 |