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:
parent
150c27e4c8
commit
0a855e2a64
1 changed files with 1 additions and 1 deletions
|
@ -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_
|
||||
|
|
Loading…
Reference in a new issue