0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-01-12 09:04:02 -05:00

Move all support functions inside 'namespace support' (#76)

This commit is contained in:
Bert Belder 2019-12-18 18:13:59 +01:00
parent 150c27e4c8
commit 0a855e2a64
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -46,7 +46,6 @@ inline static MaybeBool maybe_to_maybe_bool(v8::Maybe<bool> maybe) {
return MaybeBool::JustFalse;
}
}
} // namespace support
template <class T>
inline static T* local_to_ptr(v8::Local<T> local) {
@ -71,5 +70,6 @@ inline static v8::MaybeLocal<T> ptr_to_maybe_local(T* ptr) {
static_assert(sizeof(v8::MaybeLocal<T>) == sizeof(T*), "");
return *reinterpret_cast<v8::MaybeLocal<T>*>(&ptr);
}
} // namespace support
#endif // SUPPORT_H_