include/SDL_test_memory.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 23 Oct 2018 12:40:25 -0700
changeset 12354 7846ac86d46e
parent 11811 5d94cb6b24d3
child 12454 762a775a58cd
permissions -rw-r--r--
Fixed reinitializing the SDL joystick subsystem on Android
slouken@11610
     1
/*
slouken@11610
     2
  Simple DirectMedia Layer
slouken@11811
     3
  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
slouken@11610
     4
slouken@11610
     5
  This software is provided 'as-is', without any express or implied
slouken@11610
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@11610
     7
  arising from the use of this software.
slouken@11610
     8
slouken@11610
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@11610
    10
  including commercial applications, and to alter it and redistribute it
slouken@11610
    11
  freely, subject to the following restrictions:
slouken@11610
    12
slouken@11610
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@11610
    14
     claim that you wrote the original software. If you use this software
slouken@11610
    15
     in a product, an acknowledgment in the product documentation would be
slouken@11610
    16
     appreciated but is not required.
slouken@11610
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@11610
    18
     misrepresented as being the original software.
slouken@11610
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@11610
    20
*/
slouken@11610
    21
slouken@11610
    22
/**
slouken@11610
    23
 *  \file SDL_test_memory.h
slouken@11610
    24
 *
slouken@11610
    25
 *  Include file for SDL test framework.
slouken@11610
    26
 *
slouken@11610
    27
 *  This code is a part of the SDL2_test library, not the main SDL library.
slouken@11610
    28
 */
slouken@11610
    29
slouken@11610
    30
#ifndef SDL_test_memory_h_
slouken@11610
    31
#define SDL_test_memory_h_
slouken@11610
    32
slouken@11610
    33
#include "begin_code.h"
slouken@11610
    34
/* Set up for C function definitions, even when using C++ */
slouken@11610
    35
#ifdef __cplusplus
slouken@11610
    36
extern "C" {
slouken@11610
    37
#endif
slouken@11610
    38
slouken@11610
    39
slouken@11610
    40
/**
slouken@11610
    41
 * \brief Start tracking SDL memory allocations
slouken@11610
    42
 * 
slouken@11610
    43
 * \note This should be called before any other SDL functions for complete tracking coverage
slouken@11610
    44
 */
slouken@11610
    45
int SDLTest_TrackAllocations();
slouken@11610
    46
slouken@11610
    47
/**
slouken@11610
    48
 * \brief Print a log of any outstanding allocations
slouken@11610
    49
 *
slouken@11610
    50
 * \note This can be called after SDL_Quit()
slouken@11610
    51
 */
slouken@11610
    52
void SDLTest_LogAllocations();
slouken@11610
    53
slouken@11610
    54
slouken@11610
    55
/* Ends C function definitions when using C++ */
slouken@11610
    56
#ifdef __cplusplus
slouken@11610
    57
}
slouken@11610
    58
#endif
slouken@11610
    59
#include "close_code.h"
slouken@11610
    60
slouken@11610
    61
#endif /* SDL_test_memory_h_ */
slouken@11610
    62
slouken@11610
    63
/* vi: set ts=4 sw=4 expandtab: */