LCOV - code coverage report
Current view: top level - asar - std-includes.h (source / functions) Coverage Total Hit
Test: asar.info Lines: 100.0 % 4 4
Test Date: 2024-01-15 16:23:49 Functions: 100.0 % 1 1
Branches: - 0 0

             Branch data     Line data    Source code
       1                 :             : #pragma once
       2                 :             : 
       3                 :             : // RPG Hacker: Some standard headers unfortunately like to
       4                 :             : // spew loads of warnings on some platforms, and since this
       5                 :             : // is kinda annoying, let's wrap the headers in here so
       6                 :             : // that we can easily disable certain warnings via pragmas.
       7                 :             : 
       8                 :             : #if defined(_MSC_VER)
       9                 :             : #       pragma warning(push)
      10                 :             : #       pragma warning(disable : 4514)
      11                 :             : #       pragma warning(disable : 4577)
      12                 :             : #       pragma warning(disable : 4668)
      13                 :             : #       pragma warning(disable : 4987)
      14                 :             : #endif
      15                 :             : 
      16                 :             : #include <new>//placement new
      17                 :             : #include <stdlib.h>//malloc, realloc, free
      18                 :             : #include <string.h>//strcmp, memmove
      19                 :             : #include <stdio.h>
      20                 :             : #include <ctype.h>
      21                 :             : #include <math.h>
      22                 :             : #include <cstdio>
      23                 :             : 
      24                 :       51215 : inline char * duplicate_string(const char * str)
      25                 :             : {
      26                 :       51215 :         char * a = (char*)malloc(sizeof(char)*(strlen(str) + 1));
      27                 :       51215 :         strcpy(a, str);
      28                 :       51215 :         return a;
      29                 :             : }
      30                 :             : 
      31                 :             : #if defined(_MSC_VER)
      32                 :             : #       pragma warning(pop)
      33                 :             : #endif
        

Generated by: LCOV version 2.0-1