liblinux++

A hosted C++ runtime without any libc.
git clone git://henryandlizzy.uk/liblinux++
Log | Files | Refs

cxa.cpp (206B)


      1 #include "linux.hpp"
      2 
      3 extern "C"
      4 {
      5 
      6 void memset(char* p, size_t n, char c) noexcept
      7 {
      8 	char* const end = p + n;
      9 	while (p != end)
     10 		*p++ = c;
     11 }
     12 
     13 void __cxa_pure_virtual() noexcept
     14 {
     15 	__builtin_trap();
     16 }
     17 
     18 }