-
Notifications
You must be signed in to change notification settings - Fork 4
/
SIInternal.h
26 lines (23 loc) · 897 Bytes
/
SIInternal.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
//
// SIInternal.h
// Simon
//
// Created by Derek Clarkson on 7/1/11.
// Copyright 2011 Sensis. All rights reserved.
//
/**
* The prefix used to start the method names for the step definition.
*/
#define SISTEP_METHOD_PREFIX __stepMap
/**
* The name of the field dynamically added to classes which contain step implementations. A reference to the parent story
* is set on this key effectively giving the class access to the story without the author having to write any code.
*/
#define SIINSTANCE_STORY_REF_KEY @"__story"
/**
* These two are used to convert a sequence of chars to a string constant. We used this to convert a selector to a string
* constant within a macro. Again we need that extra level of indirection
* to fix the translation of the parameter when stringification is involved.
*/
#define toNSString(chars) _toNSString(chars)
#define _toNSString(chars) @#chars