Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/include/assert.h

    r4f147cc r12756de  
    44// The contents of this file are covered under the licence agreement in the
    55// file "LICENCE" distributed with Cforall.
    6 //
    7 // assert.h --
    8 //
     6// 
     7// assert.h -- 
     8// 
    99// Author           : Peter A. Buhr
    1010// Created On       : Thu Aug 18 13:19:26 2016
     
    1212// Last Modified On : Thu Aug 18 13:25:55 2016
    1313// Update Count     : 4
    14 //
    15 
    16 #pragma once
     14//
    1715
    1816#include_next <assert.h>
     
    2422void __assert_fail_f( const char *assertion, const char *file, unsigned int line, const char *function, const char *fmt, ... );
    2523
    26 template<typename T, typename U>
    27 static inline T safe_dynamic_cast(const U& src) {
    28         T ret = dynamic_cast<T>(src);
    29         assert(ret);
    30         return ret;
    31 }
    32 
    3324// Local Variables: //
    3425// tab-width: 4 //
Note: See TracChangeset for help on using the changeset viewer.