소스 검색

Add redundant 'inline' because I can

Ole Krüger 10 년 전
부모
커밋
01a3c91547
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      lib/luwra/functions.hpp

+ 4 - 4
lib/luwra/functions.hpp

@@ -24,7 +24,7 @@ namespace internal {
 
 	template <>
 	struct FunctionWrapper<void()> {
-		template <void(*function_pointer)()> static
+		template <void(*function_pointer)()> static inline
 		int invoke(State*) {
 			function_pointer();
 			return 0;
@@ -33,7 +33,7 @@ namespace internal {
 
 	template <typename R>
 	struct FunctionWrapper<R()> {
-		template <R(*function_pointer)()> static
+		template <R(*function_pointer)()> static inline
 		int invoke(State* state) {
 			return push(state, function_pointer());
 		}
@@ -41,7 +41,7 @@ namespace internal {
 
 	template <typename... A>
 	struct FunctionWrapper<void(A...)> {
-		template <void (*function_pointer)(A...)> static
+		template <void (*function_pointer)(A...)> static inline
 		int invoke(State* state) {
 			apply(state, function_pointer);
 			return 0;
@@ -50,7 +50,7 @@ namespace internal {
 
 	template <typename R, typename... A>
 	struct FunctionWrapper<R(A...)> {
-		template <R (*function_pointer)(A...)> static
+		template <R (*function_pointer)(A...)> static inline
 		int invoke(State* state) {
 			return push(
 				state,