mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Add option for configuring mMaxCol with mWrapCommentsAt
This commit is contained in:
parent
5c320fa9c9
commit
acc2e5b14c
4 changed files with 8 additions and 4 deletions
|
@ -3800,13 +3800,14 @@ BF_EXPORT bool BF_CALLTYPE BfParser_Reduce(BfParser* bfParser, BfPassInstance* b
|
|||
}
|
||||
|
||||
static Array<int> gCharMapping;
|
||||
BF_EXPORT const char* BF_CALLTYPE BfParser_Format(BfParser* bfParser, int formatStart, int formatEnd, int** outCharMapping)
|
||||
BF_EXPORT const char* BF_CALLTYPE BfParser_Format(BfParser* bfParser, int formatStart, int formatEnd, int** outCharMapping, int maxCol)
|
||||
{
|
||||
BP_ZONE("BfParser_Reduce");
|
||||
String& outString = *gTLStrReturn.Get();
|
||||
outString.clear();
|
||||
gCharMapping.Clear();
|
||||
BfPrinter bfPrinter(bfParser->mRootNode, bfParser->mSidechannelRootNode, bfParser->mErrorRootNode);
|
||||
bfPrinter.mMaxCol = maxCol;
|
||||
bfPrinter.mFormatStart = formatStart;
|
||||
bfPrinter.mFormatEnd = formatEnd;
|
||||
bfPrinter.mCharMapping = &gCharMapping;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue