Molybden API
Loading...
Searching...
No Matches
method_container_detail.hpp
1
// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2
// TeamDev PROPRIETARY and CONFIDENTIAL.
3
// Use is subject to license terms.
4
5
#ifndef MOLYBDEN_METHOD_CONTAINER_DETAIL_HPP
6
#define MOLYBDEN_METHOD_CONTAINER_DETAIL_HPP
7
8
namespace
molybden {
9
namespace
internal {
10
11
template
<
class
C,
class
R,
class
... T>
12
int
MethodContainer::addMethod(MethodSignature<C, R, T...> signature,
13
const
char
* name) {
14
methods_.emplace(
15
name,
16
new
internal::JsAccessibleMethodImpl<C, R, T...>(
static_cast<
C*
>
(
this
),
17
signature));
18
return
0;
19
}
20
21
}
// namespace internal
22
}
// namespace molybden
23
24
#endif
// MOLYBDEN_METHOD_CONTAINER_DETAIL_HPP
include
molybden
js
internal
detail
method_container_detail.hpp