| 346 | } |
| 347 | |
| 348 | inline void* as_pointer() const { |
| 349 | if (mType != POINTER && mType != NULLREF) |
| 350 | throw DukException() << "Expected pointer or null, got " << type_name(); |
| 351 | return mPOD.pointer; |
| 352 | } |
| 353 | |
| 354 | inline const std::string& as_string() const { |
| 355 | if (mType != STRING) |
nothing calls this directly
no test coverage detected