Sha256: f6749e6fb8a85844e197dc6c7978d97bf7a09d9e837df2498a7de31acf262507

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

#pragma once

#include <cstdlib>
#include <utility>

namespace Gosu
{
    template<class... Args>
    void log(const char* format, Args&&... args) 
    {
        using namespace std;
        
        if (getenv("GOSU_DEBUG")) {
            fprintf(stderr, format, std::forward<Args>(args)...);
            fprintf(stderr, "\n");
        }
    }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gosu-0.14.4.pre2 src/Log.hpp