summaryrefslogblamecommitdiff
path: root/src/compat/borrow.py
blob: 58cd19b491ffe74c77205118647647337750d151 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                               
class Borrowed(object):
    __slots__ = ('_value')
    name = 'tmwa::Borrowed'
    enabled = True

    def __init__(self, value):
        self._value = value['stupid']

    def to_string(self):
        return self._value

    test_extra = '''
    static int borrow_thingy;
    '''

    tests = [
            ('tmwa::borrow(borrow_thingy)', '<borrow_thingy>'),
    ]