-
Notifications
You must be signed in to change notification settings - Fork 52
/
PyBuiltInTPrint.h
40 lines (34 loc) · 1.16 KB
/
PyBuiltInTPrint.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* File: PyBuiltInPrint.h
* Author: Kent D. Lee
* (c) 2013
* Created on February 16, 2013, 8:26 PM
*
* License:
* Please read the LICENSE file in this distribution for details regarding
* the licensing of this code. This code is freely available for educational
* use. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
*
* Description:
* This built-in function tprint operates similarly to the fprint and
* print functions. Like fprint, tprint takes exactly one argument, a tuple,
* which can contain as many arguments as desired. Like print, the tprint
* function returns None. There is one "tprint" function which is created
* when CoCo starts and "tprint" is mapped to it in the globals.
*/
#ifndef PYBUILTINTPRINT_H
#define PYBUILTINTPRINT_H
#include "PyCallable.h"
#include "PyType.h"
class PyBuiltInTPrint : public PyCallable {
public:
PyBuiltInTPrint();
PyBuiltInTPrint(const PyBuiltInTPrint& orig);
virtual ~PyBuiltInTPrint();
PyType* getType();
bool allowableArgCount(int count);
string toString();
protected:
virtual PyObject* __call__(vector<PyObject*>* args);
};
#endif /* PYBUILTINTPRINT_H */