From 464a6eb431feb1afebbc64c3b2d8bb63e5790c03 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Mon, 15 Jan 2007 21:56:05 +0000 Subject: [PATCH] msvcrt: Move static function from header into file where it is called. --- dlls/msvcrt/cpp.c | 6 ++++++ dlls/msvcrt/cppexcept.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/msvcrt/cpp.c b/dlls/msvcrt/cpp.c index 5ea595d05fc..854566e2e4c 100644 --- a/dlls/msvcrt/cpp.c +++ b/dlls/msvcrt/cpp.c @@ -97,6 +97,12 @@ extern const vtable_ptr MSVCRT_bad_cast_vtable; extern const vtable_ptr MSVCRT___non_rtti_object_vtable; extern const vtable_ptr MSVCRT_type_info_vtable; +/* get the vtable pointer for a C++ object */ +static inline const vtable_ptr *get_vtable( void *obj ) +{ + return *(const vtable_ptr **)obj; +} + static inline const rtti_object_locator *get_obj_locator( void *cppobj ) { const vtable_ptr *vtable = get_vtable( cppobj ); diff --git a/dlls/msvcrt/cppexcept.h b/dlls/msvcrt/cppexcept.h index d4c8068b6c6..bf607c9680b 100644 --- a/dlls/msvcrt/cppexcept.h +++ b/dlls/msvcrt/cppexcept.h @@ -135,12 +135,6 @@ typedef struct __cxx_exception_type void _CxxThrowException(exception*,const cxx_exception_type*); -/* get the vtable pointer for a C++ object */ -static inline const vtable_ptr *get_vtable( void *obj ) -{ - return *(const vtable_ptr **)obj; -} - static inline const char *dbgstr_type_info( const type_info *info ) { if (!info) return "{}";