%PDF- %PDF-
| Direktori : /proc/thread-self/root/usr/lib/python3/dist-packages/pythran/pythonic/builtins/file/ |
| Current File : //proc/thread-self/root/usr/lib/python3/dist-packages/pythran/pythonic/builtins/file/truncate.hpp |
#ifndef PYTHONIC_BUILTIN_FILE_TRUNCATE_HPP
#define PYTHONIC_BUILTIN_FILE_TRUNCATE_HPP
#include "pythonic/include/builtins/file/truncate.hpp"
#include "pythonic/types/file.hpp"
#include "pythonic/utils/functor.hpp"
PYTHONIC_NS_BEGIN
namespace builtins
{
namespace file
{
void truncate(types::file &f)
{
f.truncate();
}
void truncate(types::file &&f)
{
f.truncate();
}
void truncate(types::file &f, long size)
{
f.truncate(size);
}
void truncate(types::file &&f, long size)
{
f.truncate(size);
}
}
}
PYTHONIC_NS_END
#endif